home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Technical Documentation / C.S.M.P. Digests / csmp-digest-v3-039 < prev    next >
Mailbox/MIME Entity  |  1994-07-07  |  56.2 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: Plain text[CR] default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 52 65 63 65 69 76 65 64 | 2d 44 61 74 65 3a 20 53 |Received|-Date: S|
|00000010| 75 6e 2c 20 32 36 20 4a | 75 6e 20 31 39 39 34 20 |un, 26 J|un 1994 |
|00000020| 32 33 3a 33 31 3a 30 32 | 20 2b 30 32 30 30 0d 46 |23:31:02| +0200.F|
|00000030| 72 6f 6d 3a 20 70 6f 74 | 74 69 65 72 40 63 6c 69 |rom: pot|tier@cli|
|00000040| 70 70 65 72 2e 65 6e 73 | 2e 66 72 20 28 46 72 61 |pper.ens|.fr (Fra|
|00000050| 6e 63 6f 69 73 20 50 6f | 74 74 69 65 72 29 0d 53 |ncois Po|ttier).S|
|00000060| 75 62 6a 65 63 74 3a 20 | 63 73 6d 70 2d 64 69 67 |ubject: |csmp-dig|
|00000070| 65 73 74 2d 76 33 2d 30 | 33 39 0d 54 6f 3a 20 63 |est-v3-0|39.To: c|
|00000080| 73 6d 70 2d 64 69 67 65 | 73 74 40 65 6e 73 2e 66 |smp-dige|st@ens.f|
|00000090| 72 0d 44 61 74 65 3a 20 | 53 75 6e 2c 20 32 36 20 |r.Date: |Sun, 26 |
|000000a0| 4a 75 6e 20 31 39 39 34 | 20 32 33 3a 33 30 3a 35 |Jun 1994| 23:30:5|
|000000b0| 36 20 2b 30 32 30 30 20 | 28 4d 45 54 20 44 53 54 |6 +0200 |(MET DST|
|000000c0| 29 0d 58 2d 4d 61 69 6c | 65 72 3a 20 45 4c 4d 20 |).X-Mail|er: ELM |
|000000d0| 5b 76 65 72 73 69 6f 6e | 20 32 2e 34 20 50 4c 32 |[version| 2.4 PL2|
|000000e0| 33 5d 0d 4d 69 6d 65 2d | 56 65 72 73 69 6f 6e 3a |3].Mime-|Version:|
|000000f0| 20 31 2e 30 0d 43 6f 6e | 74 65 6e 74 2d 54 79 70 | 1.0.Con|tent-Typ|
|00000100| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|00000110| 68 61 72 73 65 74 3d 49 | 53 4f 2d 38 38 35 39 2d |harset=I|SO-8859-|
|00000120| 31 0d 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |1.Conten|t-Transf|
|00000130| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 38 62 69 |er-Encod|ing: 8bi|
|00000140| 74 0d 45 72 72 6f 72 73 | 2d 54 6f 3a 20 6c 69 73 |t.Errors|-To: lis|
|00000150| 74 6d 61 6e 40 65 6e 73 | 2e 66 72 0d 52 65 70 6c |tman@ens|.fr.Repl|
|00000160| 79 2d 54 6f 3a 20 70 6f | 74 74 69 65 72 40 63 6c |y-To: po|ttier@cl|
|00000170| 69 70 70 65 72 2e 65 6e | 73 2e 66 72 0d 58 2d 53 |ipper.en|s.fr.X-S|
|00000180| 65 71 75 65 6e 63 65 3a | 20 34 32 0d 0d 43 2e 53 |equence:| 42..C.S|
|00000190| 2e 4d 2e 50 2e 20 44 69 | 67 65 73 74 20 20 20 20 |.M.P. Di|gest |
|000001a0| 20 20 20 20 20 20 20 20 | 20 53 75 6e 2c 20 32 36 | | Sun, 26|
|000001b0| 20 4a 75 6e 20 39 34 20 | 20 20 20 20 20 20 56 6f | Jun 94 | Vo|
|000001c0| 6c 75 6d 65 20 33 20 3a | 20 49 73 73 75 65 20 33 |lume 3 :| Issue 3|
|000001d0| 39 0d 20 0d 54 6f 64 61 | 79 27 73 20 54 6f 70 69 |9. .Toda|y's Topi|
|000001e0| 63 73 3a 0d 20 0d 20 20 | 20 20 20 20 20 20 41 50 |cs:. . | AP|
|000001f0| 49 2d 68 65 61 64 65 72 | 73 20 66 6f 72 20 43 6f |I-header|s for Co|
|00000200| 6e 74 72 6f 6c 20 53 74 | 72 69 70 20 4d 6f 64 75 |ntrol St|rip Modu|
|00000210| 6c 65 73 3f 0d 20 20 20 | 20 20 20 20 20 41 70 70 |les?. | App|
|00000220| 6c 65 20 45 76 65 6e 74 | 20 51 75 65 73 74 69 6f |le Event| Questio|
|00000230| 6e 0d 20 20 20 20 20 20 | 20 20 41 72 65 20 4e 65 |n. | Are Ne|
|00000240| 77 50 74 72 28 29 20 61 | 6e 64 20 6d 61 6c 6c 6f |wPtr() a|nd mallo|
|00000250| 63 28 29 20 64 69 66 66 | 65 72 65 6e 74 3f 20 28 |c() diff|erent? (|
|00000260| 73 6f 75 72 63 65 20 69 | 6e 63 6c 75 64 65 64 29 |source i|ncluded)|
|00000270| 0d 20 20 20 20 20 20 20 | 20 43 6c 6f 73 69 6e 67 |. | Closing|
|00000280| 20 44 6f 77 6e 20 74 68 | 65 20 46 49 4e 44 45 52 | Down th|e FINDER|
|00000290| 0d 20 20 20 20 20 20 20 | 20 46 61 74 2d 73 74 72 |. | Fat-str|
|000002a0| 69 70 70 69 6e 67 0d 20 | 20 20 20 20 20 20 20 46 |ipping. | F|
|000002b0| 69 6e 64 65 72 20 43 6f | 6d 6d 65 6e 74 73 20 61 |inder Co|mments a|
|000002c0| 6e 64 20 46 69 6e 64 65 | 72 20 49 6e 66 6f 20 55 |nd Finde|r Info U|
|000002d0| 70 64 61 74 69 6e 67 0d | 20 20 20 20 20 20 20 20 |pdating.| |
|000002e0| 4d 61 63 54 65 63 68 27 | 73 20 66 74 70 20 73 69 |MacTech'|s ftp si|
|000002f0| 74 65 20 6e 6f 77 20 61 | 76 61 69 6c 61 62 6c 65 |te now a|vailable|
|00000300| 21 0d 20 20 20 20 20 20 | 20 20 51 75 69 63 6b 44 |!. | QuickD|
|00000310| 72 61 77 20 47 58 20 44 | 69 73 70 6c 61 79 20 44 |raw GX D|isplay D|
|00000320| 65 76 69 63 65 73 0d 20 | 20 20 20 20 20 20 20 53 |evices. | S|
|00000330| 45 4d 49 2d 53 55 4d 4d | 41 52 59 3a 20 52 65 61 |EMI-SUMM|ARY: Rea|
|00000340| 64 69 6e 67 20 4a 50 45 | 47 73 20 28 77 69 74 68 |ding JPE|Gs (with|
|00000350| 20 63 6f 64 65 29 0d 20 | 20 20 20 20 20 20 20 56 | code). | V|
|00000360| 42 4c 20 69 6e 74 65 72 | 72 75 70 74 20 26 20 53 |BL inter|rupt & S|
|00000370| 74 61 63 6b 20 53 6e 69 | 66 66 65 72 0d 20 20 20 |tack Sni|ffer. |
|00000380| 20 20 20 20 20 57 72 69 | 74 69 6e 67 20 64 63 6d | Wri|ting dcm|
|00000390| 64 20 77 69 74 68 20 54 | 68 69 6e 6b 20 43 20 28 |d with T|hink C (|
|000003a0| 51 29 0d 0d 0d 0d 54 68 | 65 20 43 6f 6d 70 2e 53 |Q)....Th|e Comp.S|
|000003b0| 79 73 2e 4d 61 63 2e 50 | 72 6f 67 72 61 6d 6d 65 |ys.Mac.P|rogramme|
|000003c0| 72 20 44 69 67 65 73 74 | 20 69 73 20 6d 6f 64 65 |r Digest| is mode|
|000003d0| 72 61 74 65 64 20 62 79 | 20 46 72 61 6e 63 6f 69 |rated by| Francoi|
|000003e0| 73 20 50 6f 74 74 69 65 | 72 0d 28 70 6f 74 74 69 |s Pottie|r.(potti|
|000003f0| 65 72 40 63 6c 69 70 70 | 65 72 2e 65 6e 73 2e 66 |er@clipp|er.ens.f|
|00000400| 72 29 2e 0d 20 0d 54 68 | 65 20 64 69 67 65 73 74 |r).. .Th|e digest|
|00000410| 20 69 73 20 61 20 63 6f | 6c 6c 65 63 74 69 6f 6e | is a co|llection|
|00000420| 20 6f 66 20 61 72 74 69 | 63 6c 65 20 74 68 72 65 | of arti|cle thre|
|00000430| 61 64 73 20 66 72 6f 6d | 20 74 68 65 20 69 6e 74 |ads from| the int|
|00000440| 65 72 6e 65 74 20 6e 65 | 77 73 67 72 6f 75 70 0d |ernet ne|wsgroup.|
|00000450| 63 6f 6d 70 2e 73 79 73 | 2e 6d 61 63 2e 70 72 6f |comp.sys|.mac.pro|
|00000460| 67 72 61 6d 6d 65 72 2e | 20 20 49 74 20 69 73 20 |grammer.| It is |
|00000470| 64 65 73 69 67 6e 65 64 | 20 66 6f 72 20 70 65 6f |designed| for peo|
|00000480| 70 6c 65 20 77 68 6f 20 | 72 65 61 64 20 63 2e 73 |ple who |read c.s|
|00000490| 2e 6d 2e 70 2e 20 73 65 | 6d 69 2d 0d 72 65 67 75 |.m.p. se|mi-.regu|
|000004a0| 6c 61 72 6c 79 20 61 6e | 64 20 77 61 6e 74 20 61 |larly an|d want a|
|000004b0| 6e 20 61 72 63 68 69 76 | 65 20 6f 66 20 74 68 65 |n archiv|e of the|
|000004c0| 20 64 69 73 63 75 73 73 | 69 6f 6e 73 2e 20 20 49 | discuss|ions. I|
|000004d0| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 6b 6e 6f 77 |f you do|n't know|
|000004e0| 20 77 68 61 74 20 61 0d | 6e 65 77 73 67 72 6f 75 | what a.|newsgrou|
|000004f0| 70 20 69 73 2c 20 79 6f | 75 20 70 72 6f 62 61 62 |p is, yo|u probab|
|00000500| 6c 79 20 64 6f 6e 27 74 | 20 68 61 76 65 20 61 63 |ly don't| have ac|
|00000510| 63 65 73 73 20 74 6f 20 | 69 74 2e 20 20 41 73 6b |cess to |it. Ask|
|00000520| 20 79 6f 75 72 20 73 79 | 73 74 65 6d 73 0d 61 64 | your sy|stems.ad|
|00000530| 6d 69 6e 69 73 74 72 61 | 74 6f 72 28 73 29 20 66 |ministra|tor(s) f|
|00000540| 6f 72 20 64 65 74 61 69 | 6c 73 2e 20 20 49 66 20 |or detai|ls. If |
|00000550| 79 6f 75 20 64 6f 6e 27 | 74 20 68 61 76 65 20 61 |you don'|t have a|
|00000560| 63 63 65 73 73 20 74 6f | 20 6e 65 77 73 2c 20 79 |ccess to| news, y|
|00000570| 6f 75 20 6d 61 79 0d 73 | 74 69 6c 6c 20 62 65 20 |ou may.s|till be |
|00000580| 61 62 6c 65 20 74 6f 20 | 70 6f 73 74 20 6d 65 73 |able to |post mes|
|00000590| 73 61 67 65 73 20 74 6f | 20 74 68 65 20 67 72 6f |sages to| the gro|
|000005a0| 75 70 20 62 79 20 75 73 | 69 6e 67 20 61 20 6d 61 |up by us|ing a ma|
|000005b0| 69 6c 20 73 65 72 76 65 | 72 20 6c 69 6b 65 0d 61 |il serve|r like.a|
|000005c0| 6e 6f 6e 2e 70 65 6e 65 | 74 2e 66 69 20 28 6d 61 |non.pene|t.fi (ma|
|000005d0| 69 6c 20 68 65 6c 70 40 | 61 6e 6f 6e 2e 70 65 6e |il help@|anon.pen|
|000005e0| 65 74 2e 66 69 20 66 6f | 72 20 6d 6f 72 65 20 69 |et.fi fo|r more i|
|000005f0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 29 2e 0d 20 0d 45 |nformati|on).. .E|
|00000600| 61 63 68 20 69 73 73 75 | 65 20 6f 66 20 74 68 65 |ach issu|e of the|
|00000610| 20 64 69 67 65 73 74 20 | 63 6f 6e 74 61 69 6e 73 | digest |contains|
|00000620| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 73 65 74 | one or |more set|
|00000630| 73 20 6f 66 20 61 72 74 | 69 63 6c 65 73 20 28 63 |s of art|icles (c|
|00000640| 61 6c 6c 65 64 0d 74 68 | 72 65 61 64 73 29 2c 20 |alled.th|reads), |
|00000650| 77 69 74 68 20 65 61 63 | 68 20 73 65 74 20 63 6f |with eac|h set co|
|00000660| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 61 |rrespond|ing to a|
|00000670| 20 27 64 69 73 63 75 73 | 73 69 6f 6e 27 20 6f 66 | 'discus|sion' of|
|00000680| 20 61 20 70 61 72 74 69 | 63 75 6c 61 72 0d 73 75 | a parti|cular.su|
|00000690| 62 6a 65 63 74 2e 20 20 | 54 68 65 20 61 72 74 69 |bject. |The arti|
|000006a0| 63 6c 65 73 20 61 72 65 | 20 6e 6f 74 20 65 64 69 |cles are| not edi|
|000006b0| 74 65 64 3b 20 61 6c 6c | 20 61 72 74 69 63 6c 65 |ted; all| article|
|000006c0| 73 20 69 6e 63 6c 75 64 | 65 64 20 69 6e 20 74 68 |s includ|ed in th|
|000006d0| 69 73 20 64 69 67 65 73 | 74 0d 61 72 65 20 69 6e |is diges|t.are in|
|000006e0| 20 74 68 65 69 72 20 6f | 72 69 67 69 6e 61 6c 20 | their o|riginal |
|000006f0| 70 6f 73 74 65 64 20 66 | 6f 72 6d 20 28 61 73 20 |posted f|orm (as |
|00000700| 72 65 63 65 69 76 65 64 | 20 62 79 20 6f 75 72 20 |received| by our |
|00000710| 6e 65 77 73 20 73 65 72 | 76 65 72 20 61 74 0d 6e |news ser|ver at.n|
|00000720| 65 66 2e 65 6e 73 2e 66 | 72 29 2e 20 20 41 72 74 |ef.ens.f|r). Art|
|00000730| 69 63 6c 65 20 74 68 72 | 65 61 64 73 20 61 72 65 |icle thr|eads are|
|00000740| 20 6e 6f 74 20 61 64 64 | 65 64 20 74 6f 20 74 68 | not add|ed to th|
|00000750| 65 20 64 69 67 65 73 74 | 20 75 6e 74 69 6c 20 74 |e digest| until t|
|00000760| 68 65 20 6c 61 73 74 0d | 61 72 74 69 63 6c 65 20 |he last.|article |
|00000770| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 74 68 72 |added to| the thr|
|00000780| 65 61 64 20 69 73 20 61 | 74 20 6c 65 61 73 74 20 |ead is a|t least |
|00000790| 74 77 6f 20 77 65 65 6b | 73 20 6f 6c 64 20 28 74 |two week|s old (t|
|000007a0| 68 69 73 20 69 73 20 74 | 6f 20 65 6e 73 75 72 65 |his is t|o ensure|
|000007b0| 20 74 68 61 74 0d 74 68 | 65 20 74 68 72 65 61 64 | that.th|e thread|
|000007c0| 20 69 73 20 64 65 61 64 | 20 62 65 66 6f 72 65 20 | is dead| before |
|000007d0| 61 64 64 69 6e 67 20 69 | 74 20 74 6f 20 74 68 65 |adding i|t to the|
|000007e0| 20 64 69 67 65 73 74 29 | 2e 20 20 41 72 74 69 63 | digest)|. Artic|
|000007f0| 6c 65 20 74 68 72 65 61 | 64 73 20 74 68 61 74 0d |le threa|ds that.|
|00000800| 63 6f 6e 73 69 73 74 20 | 6f 66 20 6f 6e 6c 79 20 |consist |of only |
|00000810| 6f 6e 65 20 6d 65 73 73 | 61 67 65 20 61 72 65 20 |one mess|age are |
|00000820| 67 65 6e 65 72 61 6c 6c | 79 20 6e 6f 74 20 69 6e |generall|y not in|
|00000830| 63 6c 75 64 65 64 20 69 | 6e 20 74 68 65 20 64 69 |cluded i|n the di|
|00000840| 67 65 73 74 2e 0d 0d 54 | 68 65 20 64 69 67 65 73 |gest...T|he diges|
|00000850| 74 20 69 73 20 6f 66 66 | 69 63 69 61 6c 6c 79 20 |t is off|icially |
|00000860| 64 69 73 74 72 69 62 75 | 74 65 64 20 62 79 20 74 |distribu|ted by t|
|00000870| 77 6f 20 6d 65 61 6e 73 | 2c 20 62 79 20 65 6d 61 |wo means|, by ema|
|00000880| 69 6c 20 61 6e 64 20 66 | 74 70 2e 0d 0d 49 66 20 |il and f|tp...If |
|00000890| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 72 65 63 65 |you want| to rece|
|000008a0| 69 76 65 20 74 68 65 20 | 64 69 67 65 73 74 20 62 |ive the |digest b|
|000008b0| 79 20 6d 61 69 6c 2c 20 | 73 65 6e 64 20 65 6d 61 |y mail, |send ema|
|000008c0| 69 6c 20 74 6f 20 6c 69 | 73 74 73 65 72 76 40 65 |il to li|stserv@e|
|000008d0| 6e 73 2e 66 72 0d 77 69 | 74 68 20 6e 6f 20 73 75 |ns.fr.wi|th no su|
|000008e0| 62 6a 65 63 74 20 61 6e | 64 20 6f 6e 65 20 6f 66 |bject an|d one of|
|000008f0| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 | the fol|lowing c|
|00000900| 6f 6d 6d 61 6e 64 73 20 | 61 73 20 62 6f 64 79 3a |ommands |as body:|
|00000910| 0d 20 20 20 20 68 65 6c | 70 09 09 20 20 20 20 20 |. hel|p.. |
|00000920| 20 20 20 20 20 20 20 20 | 20 20 20 53 65 6e 64 73 | | Sends|
|00000930| 20 79 6f 75 20 61 20 73 | 75 6d 6d 61 72 79 20 6f | you a s|ummary o|
|00000940| 66 20 63 6f 6d 6d 61 6e | 64 73 0d 20 20 20 20 73 |f comman|ds. s|
|00000950| 75 62 73 63 72 69 62 65 | 20 63 73 6d 70 2d 64 69 |ubscribe| csmp-di|
|00000960| 67 65 73 74 20 59 6f 75 | 72 20 4e 61 6d 65 09 41 |gest You|r Name.A|
|00000970| 64 64 73 20 79 6f 75 20 | 74 6f 20 74 68 65 20 6d |dds you |to the m|
|00000980| 61 69 6c 69 6e 67 20 6c | 69 73 74 0d 20 20 20 20 |ailing l|ist. |
|00000990| 73 69 67 6e 6f 66 66 20 | 63 73 6d 70 2d 64 69 67 |signoff |csmp-dig|
|000009a0| 65 73 74 09 09 09 52 65 | 6d 6f 76 65 73 20 79 6f |est...Re|moves yo|
|000009b0| 75 20 66 72 6f 6d 20 74 | 68 65 20 6c 69 73 74 0d |u from t|he list.|
|000009c0| 4f 6e 63 65 20 79 6f 75 | 20 68 61 76 65 20 73 75 |Once you| have su|
|000009d0| 62 73 63 72 69 62 65 64 | 2c 20 79 6f 75 20 77 69 |bscribed|, you wi|
|000009e0| 6c 6c 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ll autom|atically|
|000009f0| 20 72 65 63 65 69 76 65 | 20 65 61 63 68 20 6e 65 | receive| each ne|
|00000a00| 77 0d 69 73 73 75 65 20 | 61 73 20 69 74 20 69 73 |w.issue |as it is|
|00000a10| 20 63 72 65 61 74 65 64 | 2e 0d 0d 54 68 65 20 6f | created|...The o|
|00000a20| 66 66 69 63 69 61 6c 20 | 66 74 70 20 69 6e 66 6f |fficial |ftp info|
|00000a30| 20 69 73 20 2f 2f 66 74 | 70 2e 64 61 72 74 6d 6f | is //ft|p.dartmo|
|00000a40| 75 74 68 2e 65 64 75 2f | 70 75 62 2f 63 73 6d 70 |uth.edu/|pub/csmp|
|00000a50| 2d 64 69 67 65 73 74 2e | 0d 51 75 65 73 74 69 6f |-digest.|.Questio|
|00000a60| 6e 73 20 72 65 6c 61 74 | 65 64 20 74 6f 20 74 68 |ns relat|ed to th|
|00000a70| 65 20 66 74 70 20 73 69 | 74 65 20 73 68 6f 75 6c |e ftp si|te shoul|
|00000a80| 64 20 62 65 20 64 69 72 | 65 63 74 65 64 20 74 6f |d be dir|ected to|
|00000a90| 0d 73 63 6f 74 74 2e 73 | 69 6c 76 65 72 40 64 61 |.scott.s|ilver@da|
|00000aa0| 72 74 6d 6f 75 74 68 2e | 65 64 75 2e 20 43 75 72 |rtmouth.|edu. Cur|
|00000ab0| 72 65 6e 74 6c 79 20 6e | 6f 20 70 72 65 76 69 6f |rently n|o previo|
|00000ac0| 75 73 20 76 6f 6c 75 6d | 65 73 20 6f 66 20 74 68 |us volum|es of th|
|00000ad0| 65 20 43 53 4d 50 0d 64 | 69 67 65 73 74 20 61 72 |e CSMP.d|igest ar|
|00000ae0| 65 20 61 76 61 69 6c 61 | 62 6c 65 20 74 68 65 72 |e availa|ble ther|
|00000af0| 65 2e 0d 0d 41 6c 73 6f | 2c 20 74 68 65 20 64 69 |e...Also|, the di|
|00000b00| 67 65 73 74 73 20 61 72 | 65 20 61 76 61 69 6c 61 |gests ar|e availa|
|00000b10| 62 6c 65 20 74 6f 20 57 | 41 49 53 20 75 73 65 72 |ble to W|AIS user|
|00000b20| 73 2e 20 20 54 6f 20 73 | 65 61 72 63 68 20 62 61 |s. To s|earch ba|
|00000b30| 63 6b 20 69 73 73 75 65 | 73 0d 77 69 74 68 20 57 |ck issue|s.with W|
|00000b40| 41 49 53 2c 20 75 73 65 | 20 63 6f 6d 70 2e 73 79 |AIS, use| comp.sy|
|00000b50| 73 2e 6d 61 63 2e 70 72 | 6f 67 72 61 6d 6d 65 72 |s.mac.pr|ogrammer|
|00000b60| 2e 73 72 63 2e 20 57 69 | 74 68 20 4d 6f 73 61 69 |.src. Wi|th Mosai|
|00000b70| 63 2c 20 75 73 65 0d 68 | 74 74 70 3a 2f 2f 77 77 |c, use.h|ttp://ww|
|00000b80| 77 2e 77 61 69 73 2e 63 | 6f 6d 2f 77 61 69 73 2d |w.wais.c|om/wais-|
|00000b90| 64 62 73 2f 63 6f 6d 70 | 2e 73 79 73 2e 6d 61 63 |dbs/comp|.sys.mac|
|00000ba0| 2e 70 72 6f 67 72 61 6d | 6d 65 72 2e 68 74 6d 6c |.program|mer.html|
|00000bb0| 2e 0d 0d 0d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |....----|--------|
|00000bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 0d 0d 3e 46 72 |--------|---..>Fr|
|00000bf0| 6f 6d 20 47 6f 72 64 69 | 65 20 46 72 65 65 64 6d |om Gordi|e Freedm|
|00000c00| 61 6e 20 3c 67 6f 72 64 | 69 65 40 6b 61 6c 65 69 |an <gord|ie@kalei|
|00000c10| 64 61 2e 63 6f 6d 3e 0d | 53 75 62 6a 65 63 74 3a |da.com>.|Subject:|
|00000c20| 20 41 50 49 2d 68 65 61 | 64 65 72 73 20 66 6f 72 | API-hea|ders for|
|00000c30| 20 43 6f 6e 74 72 6f 6c | 20 53 74 72 69 70 20 4d | Control| Strip M|
|00000c40| 6f 64 75 6c 65 73 3f 0d | 44 61 74 65 3a 20 38 20 |odules?.|Date: 8 |
|00000c50| 4a 75 6e 20 31 39 39 34 | 20 30 37 3a 31 37 3a 31 |Jun 1994| 07:17:1|
|00000c60| 39 20 47 4d 54 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |9 GMT.Or|ganizati|
|00000c70| 6f 6e 3a 20 4b 61 6c 65 | 69 64 61 20 4c 61 62 73 |on: Kale|ida Labs|
|00000c80| 2c 20 49 6e 63 2e 0d 0d | 41 6e 79 62 6f 64 79 20 |, Inc...|Anybody |
|00000c90| 6b 6e 6f 77 20 77 68 65 | 72 65 20 74 68 65 20 41 |know whe|re the A|
|00000ca0| 50 49 20 69 73 20 64 6f | 63 75 6d 65 6e 74 65 64 |PI is do|cumented|
|00000cb0| 20 74 6f 20 77 72 69 74 | 65 20 63 6f 6e 74 72 6f | to writ|e contro|
|00000cc0| 6c 20 73 74 72 69 70 20 | 6d 6f 64 75 6c 65 73 3f |l strip |modules?|
|00000cd0| 0d 49 20 61 6c 73 6f 20 | 77 61 73 6e 27 74 20 73 |.I also |wasn't s|
|00000ce0| 75 72 65 20 69 66 20 74 | 68 65 72 65 20 77 65 72 |ure if t|here wer|
|00000cf0| 65 20 61 6e 79 20 68 65 | 61 64 65 72 20 66 69 6c |e any he|ader fil|
|00000d00| 65 73 20 79 6f 75 20 75 | 73 65 64 20 77 69 74 68 |es you u|sed with|
|00000d10| 20 74 68 69 73 0d 73 74 | 75 66 66 2c 20 6f 72 20 | this.st|uff, or |
|00000d20| 69 66 20 79 6f 75 20 68 | 61 64 20 74 6f 20 72 6f |if you h|ad to ro|
|00000d30| 6c 6c 20 79 6f 75 72 20 | 6f 77 6e 2e 20 54 68 61 |ll your |own. Tha|
|00000d40| 6e 6b 73 20 69 6e 20 61 | 64 76 61 6e 63 65 2c 0d |nks in a|dvance,.|
|00000d50| 0d 47 6f 72 64 69 65 20 | 46 72 65 65 64 6d 61 6e |.Gordie |Freedman|
|00000d60| 0d 2d 2d 0d 0d 67 6f 72 | 64 69 65 40 6b 61 6c 65 |.--..gor|die@kale|
|00000d70| 69 64 61 2e 63 6f 6d 20 | 2d 20 4b 61 6c 65 69 64 |ida.com |- Kaleid|
|00000d80| 61 20 4c 61 62 73 2c 20 | 49 6e 63 2e 20 2d 20 4d |a Labs, |Inc. - M|
|00000d90| 6f 75 6e 74 61 69 6e 20 | 56 69 65 77 2c 20 43 41 |ountain |View, CA|
|00000da0| 0d 0d 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |..++++++|++++++++|
|00000db0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 0d 0d 3e |++++++++|+++++..>|
|00000dc0| 46 72 6f 6d 20 74 67 61 | 75 6c 40 68 61 6c 63 79 |From tga|ul@halcy|
|00000dd0| 6f 6e 2e 63 6f 6d 20 28 | 54 72 6f 79 20 47 61 75 |on.com (|Troy Gau|
|00000de0| 6c 29 0d 44 61 74 65 3a | 20 57 65 64 2c 20 30 38 |l).Date:| Wed, 08|
|00000df0| 20 4a 75 6e 20 31 39 39 | 34 20 32 31 3a 34 32 3a | Jun 199|4 21:42:|
|00000e00| 35 30 20 2d 30 37 30 30 | 0d 4f 72 67 61 6e 69 7a |50 -0700|.Organiz|
|00000e10| 61 74 69 6f 6e 3a 20 49 | 6e 66 69 6e 69 74 79 20 |ation: I|nfinity |
|00000e20| 53 79 73 74 65 6d 73 0d | 0d 49 6e 20 61 72 74 69 |Systems.|.In arti|
|00000e30| 63 6c 65 20 3c 32 74 33 | 72 39 76 24 33 6d 72 40 |cle <2t3|r9v$3mr@|
|00000e40| 67 6f 6c 64 65 6e 2e 6b | 61 6c 65 69 64 61 2e 63 |golden.k|aleida.c|
|00000e50| 6f 6d 3e 2c 20 47 6f 72 | 64 69 65 20 46 72 65 65 |om>, Gor|die Free|
|00000e60| 64 6d 61 6e 0d 3c 67 6f | 72 64 69 65 40 6b 61 6c |dman.<go|rdie@kal|
|00000e70| 65 69 64 61 2e 63 6f 6d | 3e 20 77 72 6f 74 65 3a |eida.com|> wrote:|
|00000e80| 0d 0d 3e 20 41 6e 79 62 | 6f 64 79 20 6b 6e 6f 77 |..> Anyb|ody know|
|00000e90| 20 77 68 65 72 65 20 74 | 68 65 20 41 50 49 20 69 | where t|he API i|
|00000ea0| 73 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 74 6f 20 |s docume|nted to |
|00000eb0| 77 72 69 74 65 20 63 6f | 6e 74 72 6f 6c 20 73 74 |write co|ntrol st|
|00000ec0| 72 69 70 20 6d 6f 64 75 | 6c 65 73 3f 0d 3e 20 49 |rip modu|les?.> I|
|00000ed0| 20 61 6c 73 6f 20 77 61 | 73 6e 27 74 20 73 75 72 | also wa|sn't sur|
|00000ee0| 65 20 69 66 20 74 68 65 | 72 65 20 77 65 72 65 20 |e if the|re were |
|00000ef0| 61 6e 79 20 68 65 61 64 | 65 72 20 66 69 6c 65 73 |any head|er files|
|00000f00| 20 79 6f 75 20 75 73 65 | 64 20 77 69 74 68 20 74 | you use|d with t|
|00000f10| 68 69 73 0d 3e 20 73 74 | 75 66 66 2c 20 6f 72 20 |his.> st|uff, or |
|00000f20| 69 66 20 79 6f 75 20 68 | 61 64 20 74 6f 20 72 6f |if you h|ad to ro|
|00000f30| 6c 6c 20 79 6f 75 72 20 | 6f 77 6e 2e 20 54 68 61 |ll your |own. Tha|
|00000f40| 6e 6b 73 20 69 6e 20 61 | 64 76 61 6e 63 65 2c 0d |nks in a|dvance,.|
|00000f50| 0d 54 68 65 79 27 72 65 | 20 69 6e 20 74 68 65 20 |.They're| in the |
|00000f60| 50 6f 77 65 72 42 6f 6f | 6b 20 35 30 30 2d 73 65 |PowerBoo|k 500-se|
|00000f70| 72 69 65 73 20 74 65 63 | 68 6e 69 63 61 6c 20 6e |ries tec|hnical n|
|00000f80| 6f 74 65 73 2c 20 77 68 | 69 63 68 20 77 65 72 65 |otes, wh|ich were|
|00000f90| 20 69 6e 63 6c 75 64 65 | 64 20 6f 6e 0d 74 68 65 | include|d on.the|
|00000fa0| 20 4a 75 6e 65 20 44 65 | 76 65 6c 6f 70 65 72 20 | June De|veloper |
|00000fb0| 43 44 2e 20 20 41 73 20 | 66 61 72 20 61 73 20 61 |CD. As |far as a|
|00000fc0| 20 68 65 61 64 65 72 20 | 66 69 6c 65 20 67 6f 65 | header |file goe|
|00000fd0| 73 2c 20 49 20 64 69 64 | 6e 27 74 20 73 65 65 20 |s, I did|n't see |
|00000fe0| 61 6e 79 74 68 69 6e 67 | 0d 69 6e 63 6c 75 64 65 |anything|.include|
|00000ff0| 64 2e 0d 0d 5f 74 72 6f | 79 0d 2f 2f 2f 2f 2f 2f |d..._tro|y.//////|
|00001000| 2f 2f 20 2f 2f 2f 2f 2f | 2f 5f 5f 5f 54 72 6f 79 |// /////|/___Troy|
|00001010| 20 47 61 75 6c 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f | Gaul___|________|
|00001020| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 74 67 |________|______tg|
|00001030| 61 75 6c 40 68 61 6c 63 | 79 6f 6e 2e 63 6f 6d 5f |aul@halc|yon.com_|
|00001040| 5f 20 2f 2f 0d 20 20 2f | 2f 20 20 20 20 2f 2f 20 |_ //. /|/ // |
|00001050| 20 20 20 20 20 20 49 6e | 66 69 6e 69 74 79 20 53 | In|finity S|
|00001060| 79 73 74 65 6d 73 20 3b | 20 52 65 64 6d 6f 6e 64 |ystems ;| Redmond|
|00001070| 2c 20 57 61 73 68 69 6e | 67 74 6f 6e 20 20 20 20 |, Washin|gton |
|00001080| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2f 0d 20 | | //. |
|00001090| 2f 2f 20 20 20 20 2f 2f | 20 20 2f 2f 20 20 22 49 |// //| // "I|
|000010a0| 6e 73 65 72 74 20 77 69 | 74 74 79 20 71 75 6f 74 |nsert wi|tty quot|
|000010b0| 65 20 68 65 72 65 2e 22 | 20 20 20 20 20 20 20 20 |e here."| |
|000010c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000010d0| 20 20 20 20 20 2f 2f 0d | 2f 2f 20 20 20 20 2f 2f | //.|// //|
|000010e0| 2f 2f 2f 2f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |////____|________|
|000010f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001100| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001110| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 20 2f 2f 0d |________|____ //.|
|00001120| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|00001130| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|00001140| 72 6f 6d 20 6a 6f 6e 70 | 75 67 68 40 6e 65 74 63 |rom jonp|ugh@netc|
|00001150| 6f 6d 2e 63 6f 6d 20 28 | 4a 6f 6e 20 50 75 67 68 |om.com (|Jon Pugh|
|00001160| 29 0d 44 61 74 65 3a 20 | 53 61 74 2c 20 31 31 20 |).Date: |Sat, 11 |
|00001170| 4a 75 6e 20 31 39 39 34 | 20 30 39 3a 31 32 3a 31 |Jun 1994| 09:12:1|
|00001180| 32 20 47 4d 54 0d 4f 72 | 67 61 6e 69 7a 61 74 69 |2 GMT.Or|ganizati|
|00001190| 6f 6e 3a 20 4e 45 54 43 | 4f 4d 20 4f 6e 2d 6c 69 |on: NETC|OM On-li|
|000011a0| 6e 65 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |ne Commu|nication|
|000011b0| 20 53 65 72 76 69 63 65 | 73 20 28 34 30 38 20 32 | Service|s (408 2|
|000011c0| 36 31 2d 34 37 30 30 20 | 67 75 65 73 74 29 0d 0d |61-4700 |guest)..|
|000011d0| 47 6f 72 64 69 65 20 46 | 72 65 65 64 6d 61 6e 20 |Gordie F|reedman |
|000011e0| 28 67 6f 72 64 69 65 40 | 6b 61 6c 65 69 64 61 2e |(gordie@|kaleida.|
|000011f0| 63 6f 6d 29 20 77 72 6f | 74 65 3a 0d 3e 20 41 6e |com) wro|te:.> An|
|00001200| 79 62 6f 64 79 20 6b 6e | 6f 77 20 77 68 65 72 65 |ybody kn|ow where|
|00001210| 20 74 68 65 20 41 50 49 | 20 69 73 20 64 6f 63 75 | the API| is docu|
|00001220| 6d 65 6e 74 65 64 20 74 | 6f 20 77 72 69 74 65 20 |mented t|o write |
|00001230| 63 6f 6e 74 72 6f 6c 20 | 73 74 72 69 70 20 6d 6f |control |strip mo|
|00001240| 64 75 6c 65 73 3f 0d 3e | 20 49 20 61 6c 73 6f 20 |dules?.>| I also |
|00001250| 77 61 73 6e 27 74 20 73 | 75 72 65 20 69 66 20 74 |wasn't s|ure if t|
|00001260| 68 65 72 65 20 77 65 72 | 65 20 61 6e 79 20 68 65 |here wer|e any he|
|00001270| 61 64 65 72 20 66 69 6c | 65 73 20 79 6f 75 20 75 |ader fil|es you u|
|00001280| 73 65 64 20 77 69 74 68 | 20 74 68 69 73 0d 3e 20 |sed with| this.> |
|00001290| 73 74 75 66 66 2c 20 6f | 72 20 69 66 20 79 6f 75 |stuff, o|r if you|
|000012a0| 20 68 61 64 20 74 6f 20 | 72 6f 6c 6c 20 79 6f 75 | had to |roll you|
|000012b0| 72 20 6f 77 6e 2e 20 54 | 68 61 6e 6b 73 20 69 6e |r own. T|hanks in|
|000012c0| 20 61 64 76 61 6e 63 65 | 2c 0d 0d 46 6f 72 20 74 | advance|,..For t|
|000012d0| 68 61 74 20 6d 61 74 74 | 65 72 2c 20 63 61 6e 20 |hat matt|er, can |
|000012e0| 79 6f 75 20 67 65 74 20 | 74 68 65 20 73 6f 66 74 |you get |the soft|
|000012f0| 77 61 72 65 20 61 6e 79 | 20 77 61 79 20 77 69 74 |ware any| way wit|
|00001300| 68 6f 75 74 20 62 75 79 | 69 6e 67 20 61 20 35 30 |hout buy|ing a 50|
|00001310| 30 3f 0d 0d 4e 6f 74 20 | 74 68 61 74 20 49 20 64 |0?..Not |that I d|
|00001320| 6f 6e 27 74 20 77 61 6e | 74 20 61 20 35 30 30 2e |on't wan|t a 500.|
|00001330| 2e 2e 0d 0d 4a 6f 6e 0d | 0d 2b 2b 2b 2b 2b 2b 2b |....Jon.|.+++++++|
|00001340| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001350| 2b 2b 2b 2b 0d 0d 3e 46 | 72 6f 6d 20 74 67 61 75 |++++..>F|rom tgau|
|00001360| 6c 40 68 61 6c 63 79 6f | 6e 2e 63 6f 6d 20 28 54 |l@halcyo|n.com (T|
|00001370| 72 6f 79 20 47 61 75 6c | 29 0d 44 61 74 65 3a 20 |roy Gaul|).Date: |
|00001380| 53 61 74 2c 20 31 31 20 | 4a 75 6e 20 31 39 39 34 |Sat, 11 |Jun 1994|
|00001390| 20 32 32 3a 34 36 3a 33 | 33 20 2d 30 37 30 30 0d | 22:46:3|3 -0700.|
|000013a0| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 49 6e |Organiza|tion: In|
|000013b0| 66 69 6e 69 74 79 20 53 | 79 73 74 65 6d 73 0d 0d |finity S|ystems..|
|000013c0| 49 6e 20 61 72 74 69 63 | 6c 65 20 3c 6a 6f 6e 70 |In artic|le <jonp|
|000013d0| 75 67 68 43 72 38 36 77 | 43 2e 4c 42 41 40 6e 65 |ughCr86w|C.LBA@ne|
|000013e0| 74 63 6f 6d 2e 63 6f 6d | 3e 2c 20 6a 6f 6e 70 75 |tcom.com|>, jonpu|
|000013f0| 67 68 40 6e 65 74 63 6f | 6d 2e 63 6f 6d 20 28 4a |gh@netco|m.com (J|
|00001400| 6f 6e 20 50 75 67 68 29 | 0d 77 72 6f 74 65 3a 0d |on Pugh)|.wrote:.|
|00001410| 0d 3e 20 47 6f 72 64 69 | 65 20 46 72 65 65 64 6d |.> Gordi|e Freedm|
|00001420| 61 6e 20 28 67 6f 72 64 | 69 65 40 6b 61 6c 65 69 |an (gord|ie@kalei|
|00001430| 64 61 2e 63 6f 6d 29 20 | 77 72 6f 74 65 3a 0d 3e |da.com) |wrote:.>|
|00001440| 20 3e 20 41 6e 79 62 6f | 64 79 20 6b 6e 6f 77 20 | > Anybo|dy know |
|00001450| 77 68 65 72 65 20 74 68 | 65 20 41 50 49 20 69 73 |where th|e API is|
|00001460| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 74 6f 20 77 | documen|ted to w|
|00001470| 72 69 74 65 20 63 6f 6e | 74 72 6f 6c 20 73 74 72 |rite con|trol str|
|00001480| 69 70 20 6d 6f 64 75 6c | 65 73 3f 0d 3e 20 3e 20 |ip modul|es?.> > |
|00001490| 49 20 61 6c 73 6f 20 77 | 61 73 6e 27 74 20 73 75 |I also w|asn't su|
|000014a0| 72 65 20 69 66 20 74 68 | 65 72 65 20 77 65 72 65 |re if th|ere were|
|000014b0| 20 61 6e 79 20 68 65 61 | 64 65 72 20 66 69 6c 65 | any hea|der file|
|000014c0| 73 20 79 6f 75 20 75 73 | 65 64 20 77 69 74 68 20 |s you us|ed with |
|000014d0| 74 68 69 73 0d 3e 20 3e | 20 73 74 75 66 66 2c 20 |this.> >| stuff, |
|000014e0| 6f 72 20 69 66 20 79 6f | 75 20 68 61 64 20 74 6f |or if yo|u had to|
|000014f0| 20 72 6f 6c 6c 20 79 6f | 75 72 20 6f 77 6e 2e 20 | roll yo|ur own. |
|00001500| 54 68 61 6e 6b 73 20 69 | 6e 20 61 64 76 61 6e 63 |Thanks i|n advanc|
|00001510| 65 2c 0d 3e 20 0d 3e 20 | 46 6f 72 20 74 68 61 74 |e,.> .> |For that|
|00001520| 20 6d 61 74 74 65 72 2c | 20 63 61 6e 20 79 6f 75 | matter,| can you|
|00001530| 20 67 65 74 20 74 68 65 | 20 73 6f 66 74 77 61 72 | get the| softwar|
|00001540| 65 20 61 6e 79 20 77 61 | 79 20 77 69 74 68 6f 75 |e any wa|y withou|
|00001550| 74 20 62 75 79 69 6e 67 | 20 61 20 35 30 30 3f 0d |t buying| a 500?.|
|00001560| 3e 20 0d 3e 20 4e 6f 74 | 20 74 68 61 74 20 49 20 |> .> Not| that I |
|00001570| 64 6f 6e 27 74 20 77 61 | 6e 74 20 61 20 35 30 30 |don't wa|nt a 500|
|00001580| 2e 2e 2e 0d 0d 49 20 74 | 72 69 65 64 20 61 20 63 |.....I t|ried a c|
|00001590| 6f 70 79 20 6f 66 20 43 | 6f 6e 74 72 6f 6c 20 53 |opy of C|ontrol S|
|000015a0| 74 72 69 70 2c 20 67 72 | 61 62 62 65 64 20 6f 66 |trip, gr|abbed of|
|000015b0| 66 20 74 68 65 20 68 61 | 72 64 20 64 72 69 76 65 |f the ha|rd drive|
|000015c0| 20 6f 66 20 61 20 35 30 | 30 2c 20 61 6e 64 0d 74 | of a 50|0, and.t|
|000015d0| 72 69 65 64 20 69 74 20 | 6f 6e 20 61 20 64 65 73 |ried it |on a des|
|000015e0| 6b 74 6f 70 20 4d 61 63 | 2c 20 61 6e 64 20 69 74 |ktop Mac|, and it|
|000015f0| 20 77 6f 75 6c 64 6e 27 | 74 20 66 75 6e 63 74 69 | wouldn'|t functi|
|00001600| 6f 6e 2c 20 62 75 74 20 | 69 74 20 77 6f 72 6b 65 |on, but |it worke|
|00001610| 64 20 66 69 6e 65 20 6f | 6e 0d 61 20 50 6f 77 65 |d fine o|n.a Powe|
|00001620| 72 42 6f 6f 6b 20 31 34 | 30 2e 20 20 0d 0d 49 20 |rBook 14|0. ..I |
|00001630| 63 65 72 74 61 69 6e 6c | 79 20 68 6f 70 65 20 74 |certainl|y hope t|
|00001640| 68 61 74 20 74 68 65 79 | 20 61 6c 6c 6f 77 20 69 |hat they| allow i|
|00001650| 74 20 74 6f 20 77 6f 72 | 6b 20 6f 6e 20 64 65 73 |t to wor|k on des|
|00001660| 6b 74 6f 70 20 4d 61 63 | 73 20 61 73 20 77 65 6c |ktop Mac|s as wel|
|00001670| 6c 20 73 6f 6f 6e 2e 20 | 0d 49 27 64 20 6c 69 6b |l soon. |.I'd lik|
|00001680| 65 20 74 6f 20 75 73 65 | 20 69 74 20 66 6f 72 20 |e to use| it for |
|00001690| 61 20 66 65 77 20 74 68 | 69 6e 67 73 20 6d 79 73 |a few th|ings mys|
|000016a0| 65 6c 66 20 28 6c 69 6b | 65 20 76 6f 6c 75 6d 65 |elf (lik|e volume|
|000016b0| 20 61 6e 64 20 6d 6f 6e | 69 74 6f 72 0d 64 65 70 | and mon|itor.dep|
|000016c0| 74 68 2d 73 77 69 74 63 | 68 69 6e 67 29 2c 20 61 |th-switc|hing), a|
|000016d0| 6e 64 20 69 74 73 20 6d | 6f 64 75 6c 61 72 20 61 |nd its m|odular a|
|000016e0| 72 63 68 69 74 65 63 74 | 75 72 65 20 6d 61 6b 65 |rchitect|ure make|
|000016f0| 73 20 69 74 20 65 61 73 | 79 20 66 6f 72 20 74 68 |s it eas|y for th|
|00001700| 69 72 64 0d 70 61 72 74 | 69 65 73 20 74 6f 20 77 |ird.part|ies to w|
|00001710| 72 69 74 65 20 6d 6f 64 | 75 6c 65 73 20 74 68 61 |rite mod|ules tha|
|00001720| 74 20 77 6f 75 6c 64 20 | 62 65 20 75 73 65 66 75 |t would |be usefu|
|00001730| 6c 20 66 6f 72 20 75 73 | 65 72 73 20 6f 66 20 64 |l for us|ers of d|
|00001740| 65 73 6b 74 6f 70 0d 6d | 61 63 68 69 6e 65 73 2e |esktop.m|achines.|
|00001750| 0d 0d 5f 74 72 6f 79 0d | 2f 2f 2f 2f 2f 2f 2f 2f |.._troy.|////////|
|00001760| 20 2f 2f 2f 2f 2f 2f 5f | 5f 5f 54 72 6f 79 20 47 | //////_|__Troy G|
|00001770| 61 75 6c 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |aul_____|________|
|00001780| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 74 67 61 75 |________|____tgau|
|00001790| 6c 40 68 61 6c 63 79 6f | 6e 2e 63 6f 6d 5f 5f 20 |l@halcyo|n.com__ |
|000017a0| 2f 2f 0d 20 20 2f 2f 20 | 20 20 20 2f 2f 20 20 20 |//. // | // |
|000017b0| 20 20 20 20 49 6e 66 69 | 6e 69 74 79 20 53 79 73 | Infi|nity Sys|
|000017c0| 74 65 6d 73 20 3b 20 52 | 65 64 6d 6f 6e 64 2c 20 |tems ; R|edmond, |
|000017d0| 57 61 73 68 69 6e 67 74 | 6f 6e 20 20 20 20 20 20 |Washingt|on |
|000017e0| 20 20 20 20 20 20 20 20 | 20 20 2f 2f 0d 20 2f 2f | | //. //|
|000017f0| 20 20 20 20 2f 2f 20 20 | 2f 2f 20 20 22 49 6e 73 | // |// "Ins|
|00001800| 65 72 74 20 77 69 74 74 | 79 20 71 75 6f 74 65 20 |ert witt|y quote |
|00001810| 68 65 72 65 2e 22 20 20 | 20 20 20 20 20 20 20 20 |here." | |
|00001820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001830| 20 20 20 2f 2f 0d 2f 2f | 20 20 20 20 2f 2f 2f 2f | //.//| ////|
|00001840| 2f 2f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |//______|________|
|00001850| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001860| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001870| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 20 2f 2f 0d 0d 2b |________|__ //..+|
|00001880| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001890| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 0d 0d 3e 46 72 6f |++++++++|++..>Fro|
|000018a0| 6d 20 71 75 69 6e 6e 40 | 63 73 2e 75 77 61 2e 65 |m quinn@|cs.uwa.e|
|000018b0| 64 75 2e 61 75 20 28 51 | 75 69 6e 6e 20 22 54 68 |du.au (Q|uinn "Th|
|000018c0| 65 20 45 73 6b 69 6d 6f | 21 22 29 0d 44 61 74 65 |e Eskimo|!").Date|
|000018d0| 3a 20 53 75 6e 2c 20 31 | 32 20 4a 75 6e 20 31 39 |: Sun, 1|2 Jun 19|
|000018e0| 39 34 20 31 34 3a 35 34 | 3a 33 34 20 2b 30 38 30 |94 14:54|:34 +080|
|000018f0| 30 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|00001900| 44 65 70 61 72 74 6d 65 | 6e 74 20 6f 66 20 43 6f |Departme|nt of Co|
|00001910| 6d 70 75 74 65 72 20 53 | 63 69 65 6e 63 65 2c 20 |mputer S|cience, |
|00001920| 54 68 65 20 55 6e 69 76 | 65 72 73 69 74 79 20 6f |The Univ|ersity o|
|00001930| 66 20 57 65 73 74 65 72 | 6e 20 41 75 73 74 72 61 |f Wester|n Austra|
|00001940| 6c 69 61 0d 0d 49 6e 20 | 61 72 74 69 63 6c 65 20 |lia..In |article |
|00001950| 3c 6a 6f 6e 70 75 67 68 | 43 72 38 36 77 43 2e 4c |<jonpugh|Cr86wC.L|
|00001960| 42 41 40 6e 65 74 63 6f | 6d 2e 63 6f 6d 3e 2c 20 |BA@netco|m.com>, |
|00001970| 6a 6f 6e 70 75 67 68 40 | 6e 65 74 63 6f 6d 2e 63 |jonpugh@|netcom.c|
|00001980| 6f 6d 20 28 4a 6f 6e 20 | 50 75 67 68 29 20 77 72 |om (Jon |Pugh) wr|
|00001990| 6f 74 65 3a 0d 0d 3e 46 | 6f 72 20 74 68 61 74 20 |ote:..>F|or that |
|000019a0| 6d 61 74 74 65 72 2c 20 | 63 61 6e 20 79 6f 75 20 |matter, |can you |
|000019b0| 67 65 74 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 |get the |software|
|000019c0| 20 61 6e 79 20 77 61 79 | 20 77 69 74 68 6f 75 74 | any way| without|
|000019d0| 20 62 75 79 69 6e 67 20 | 61 20 35 30 30 3f 0d 0d | buying |a 500?..|
|000019e0| 59 65 73 2e 20 20 47 65 | 74 20 61 20 32 38 30 20 |Yes. Ge|t a 280 |
|000019f0| 28 3a 0d 2d 2d 20 0d 51 | 75 69 6e 6e 20 22 54 68 |(:.-- .Q|uinn "Th|
|00001a00| 65 20 45 73 6b 69 6d 6f | 21 22 20 20 20 20 20 20 |e Eskimo|!" |
|00001a10| 3c 71 75 69 6e 6e 40 63 | 73 2e 75 77 61 2e 65 64 |<quinn@c|s.uwa.ed|
|00001a20| 75 2e 61 75 3e 20 20 20 | 20 20 22 53 75 70 70 6f |u.au> | "Suppo|
|00001a30| 72 74 20 48 41 56 4f 43 | 21 22 0d 44 65 70 61 72 |rt HAVOC|!".Depar|
|00001a40| 74 6d 65 6e 74 20 6f 66 | 20 43 6f 6d 70 75 74 65 |tment of| Compute|
|00001a50| 72 20 53 63 69 65 6e 63 | 65 2c 20 54 68 65 20 55 |r Scienc|e, The U|
|00001a60| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 57 65 73 |niversit|y of Wes|
|00001a70| 74 65 72 6e 20 41 75 73 | 74 72 61 6c 69 61 0d 0d |tern Aus|tralia..|
|00001a80| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00001a90| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00001aa0| 6f 6d 20 71 75 69 6e 6e | 40 63 73 2e 75 77 61 2e |om quinn|@cs.uwa.|
|00001ab0| 65 64 75 2e 61 75 20 28 | 51 75 69 6e 6e 20 22 54 |edu.au (|Quinn "T|
|00001ac0| 68 65 20 45 73 6b 69 6d | 6f 21 22 29 0d 44 61 74 |he Eskim|o!").Dat|
|00001ad0| 65 3a 20 53 75 6e 2c 20 | 31 32 20 4a 75 6e 20 31 |e: Sun, |12 Jun 1|
|00001ae0| 39 39 34 20 32 33 3a 30 | 38 3a 31 37 20 2b 30 38 |994 23:0|8:17 +08|
|00001af0| 30 30 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |00.Organ|ization:|
|00001b00| 20 44 65 70 61 72 74 6d | 65 6e 74 20 6f 66 20 43 | Departm|ent of C|
|00001b10| 6f 6d 70 75 74 65 72 20 | 53 63 69 65 6e 63 65 2c |omputer |Science,|
|00001b20| 20 54 68 65 20 55 6e 69 | 76 65 72 73 69 74 79 20 | The Uni|versity |
|00001b30| 6f 66 20 57 65 73 74 65 | 72 6e 20 41 75 73 74 72 |of Weste|rn Austr|
|00001b40| 61 6c 69 61 0d 0d 49 6e | 20 61 72 74 69 63 6c 65 |alia..In| article|
|00001b50| 20 3c 74 67 61 75 6c 2d | 31 31 30 36 39 34 32 32 | <tgaul-|11069422|
|00001b60| 34 36 33 33 40 62 65 6c | 6c 65 76 75 65 2d 69 70 |4633@bel|levue-ip|
|00001b70| 36 38 2e 68 61 6c 63 79 | 6f 6e 2e 63 6f 6d 3e 2c |68.halcy|on.com>,|
|00001b80| 0d 74 67 61 75 6c 40 68 | 61 6c 63 79 6f 6e 2e 63 |.tgaul@h|alcyon.c|
|00001b90| 6f 6d 20 28 54 72 6f 79 | 20 47 61 75 6c 29 20 77 |om (Troy| Gaul) w|
|00001ba0| 72 6f 74 65 3a 0d 0d 3e | 49 20 74 72 69 65 64 20 |rote:..>|I tried |
|00001bb0| 61 20 63 6f 70 79 20 6f | 66 20 43 6f 6e 74 72 6f |a copy o|f Contro|
|00001bc0| 6c 20 53 74 72 69 70 2c | 20 67 72 61 62 62 65 64 |l Strip,| grabbed|
|00001bd0| 20 6f 66 66 20 74 68 65 | 20 68 61 72 64 20 64 72 | off the| hard dr|
|00001be0| 69 76 65 20 6f 66 20 61 | 20 35 30 30 2c 20 61 6e |ive of a| 500, an|
|00001bf0| 64 0d 3e 74 72 69 65 64 | 20 69 74 20 6f 6e 20 61 |d.>tried| it on a|
|00001c00| 20 64 65 73 6b 74 6f 70 | 20 4d 61 63 2c 20 61 6e | desktop| Mac, an|
|00001c10| 64 20 69 74 20 77 6f 75 | 6c 64 6e 27 74 20 66 75 |d it wou|ldn't fu|
|00001c20| 6e 63 74 69 6f 6e 2c 20 | 62 75 74 20 69 74 20 77 |nction, |but it w|
|00001c30| 6f 72 6b 65 64 20 66 69 | 6e 65 20 6f 6e 0d 3e 61 |orked fi|ne on.>a|
|00001c40| 20 50 6f 77 65 72 42 6f | 6f 6b 20 31 34 30 2e 20 | PowerBo|ok 140. |
|00001c50| 20 0d 0d 54 68 65 20 67 | 75 79 73 20 61 74 20 74 | ..The g|uys at t|
|00001c60| 68 65 20 57 57 44 43 20 | 73 65 73 73 69 6f 6e 20 |he WWDC |session |
|00001c70| 73 61 69 64 20 74 68 65 | 79 20 77 6f 75 6c 64 20 |said the|y would |
|00001c80| 63 6f 6e 73 69 64 65 72 | 20 6d 6f 76 69 6e 67 20 |consider| moving |
|00001c90| 69 74 20 74 6f 20 74 68 | 65 0d 64 65 73 6b 74 6f |it to th|e.deskto|
|00001ca0| 70 20 4d 61 63 73 20 64 | 65 70 65 6e 64 69 6e 67 |p Macs d|epending|
|00001cb0| 20 6f 6e 20 68 6f 77 20 | 69 74 20 77 61 73 20 72 | on how |it was r|
|00001cc0| 65 63 65 69 76 65 64 20 | 6f 6e 20 74 68 65 20 50 |eceived |on the P|
|00001cd0| 6f 77 65 72 42 6f 6f 6b | 73 2e 20 0d 50 65 72 73 |owerBook|s. .Pers|
|00001ce0| 6f 6e 61 6c 6c 79 20 49 | 20 74 68 69 6e 6b 20 69 |onally I| think i|
|00001cf0| 74 27 73 20 61 20 54 4f | 45 20 28 54 68 69 6e 67 |t's a TO|E (Thing|
|00001d00| 20 4f 66 20 45 76 69 6c | 20 28 74 6d 29 29 2e 20 | Of Evil| (tm)). |
|00001d10| 20 54 68 61 74 20 77 6f | 6e 27 74 20 73 74 6f 70 | That wo|n't stop|
|00001d20| 20 6d 65 0d 75 73 69 6e | 67 20 69 74 20 6f 66 20 | me.usin|g it of |
|00001d30| 63 6f 75 72 73 65 20 28 | 3a 0d 2d 2d 20 0d 51 75 |course (|:.-- .Qu|
|00001d40| 69 6e 6e 20 22 54 68 65 | 20 45 73 6b 69 6d 6f 21 |inn "The| Eskimo!|
|00001d50| 22 20 20 20 20 20 20 3c | 71 75 69 6e 6e 40 63 73 |" <|quinn@cs|
|00001d60| 2e 75 77 61 2e 65 64 75 | 2e 61 75 3e 20 20 20 20 |.uwa.edu|.au> |
|00001d70| 20 22 53 75 70 70 6f 72 | 74 20 48 41 56 4f 43 21 | "Suppor|t HAVOC!|
|00001d80| 22 0d 44 65 70 61 72 74 | 6d 65 6e 74 20 6f 66 20 |".Depart|ment of |
|00001d90| 43 6f 6d 70 75 74 65 72 | 20 53 63 69 65 6e 63 65 |Computer| Science|
|00001da0| 2c 20 54 68 65 20 55 6e | 69 76 65 72 73 69 74 79 |, The Un|iversity|
|00001db0| 20 6f 66 20 57 65 73 74 | 65 72 6e 20 41 75 73 74 | of West|ern Aust|
|00001dc0| 72 61 6c 69 61 0d 20 20 | 4e 6f 77 20 69 66 20 6f |ralia. |Now if o|
|00001dd0| 6e 6c 79 20 74 68 65 20 | 32 38 30 43 20 49 20 68 |nly the |280C I h|
|00001de0| 61 76 65 20 6f 6e 20 6f | 72 64 65 72 20 77 6f 75 |ave on o|rder wou|
|00001df0| 6c 64 20 61 72 72 69 76 | 65 20 29 3a 0d 0d 2d 2d |ld arriv|e ):..--|
|00001e00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 0d 0d 3e 46 72 6f 6d |--------|-..>From|
|00001e20| 20 6a 6d 6c 31 36 40 70 | 6f 2e 43 57 52 55 2e 45 | jml16@p|o.CWRU.E|
|00001e30| 64 75 20 28 4a 6f 6e 61 | 74 68 6f 6e 20 4d 2e 20 |du (Jona|thon M. |
|00001e40| 4c 69 70 73 6b 79 29 0d | 53 75 62 6a 65 63 74 3a |Lipsky).|Subject:|
|00001e50| 20 41 70 70 6c 65 20 45 | 76 65 6e 74 20 51 75 65 | Apple E|vent Que|
|00001e60| 73 74 69 6f 6e 0d 44 61 | 74 65 3a 20 32 20 4a 75 |stion.Da|te: 2 Ju|
|00001e70| 6e 20 31 39 39 34 20 32 | 30 3a 30 31 3a 31 36 20 |n 1994 2|0:01:16 |
|00001e80| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00001e90| 3a 20 43 61 73 65 20 57 | 65 73 74 65 72 6e 20 52 |: Case W|estern R|
|00001ea0| 65 73 65 72 76 65 20 55 | 6e 69 76 65 72 73 69 74 |eserve U|niversit|
|00001eb0| 79 2c 20 43 6c 65 76 65 | 6c 61 6e 64 2c 20 4f 68 |y, Cleve|land, Oh|
|00001ec0| 69 6f 20 28 55 53 41 29 | 0d 0d 0d 49 20 77 6f 75 |io (USA)|...I wou|
|00001ed0| 6c 64 20 6c 69 6b 65 20 | 74 6f 20 6b 6e 6f 77 20 |ld like |to know |
|00001ee0| 69 66 20 61 6e 79 6f 6e | 65 20 68 61 73 20 63 72 |if anyon|e has cr|
|00001ef0| 65 61 74 65 64 20 74 68 | 65 69 72 20 6f 77 6e 0d |eated th|eir own.|
|00001f00| 41 70 70 6c 65 45 76 65 | 6e 74 73 20 74 6f 20 70 |AppleEve|nts to p|
|00001f10| 61 73 73 20 64 61 74 61 | 20 62 65 74 77 65 65 6e |ass data| between|
|00001f20| 20 74 77 6f 20 70 72 6f | 67 72 61 6d 73 2e 20 20 | two pro|grams. |
|00001f30| 57 68 61 74 0d 49 20 77 | 6f 75 6c 64 20 6c 69 6b |What.I w|ould lik|
|00001f40| 65 20 74 6f 20 64 6f 20 | 69 73 20 69 6d 70 6c 69 |e to do |is impli|
|00001f50| 6d 65 6e 74 20 61 6e 20 | 65 76 65 6e 74 20 73 69 |ment an |event si|
|00001f60| 6d 69 6c 61 72 20 74 6f | 0d 61 6e 20 4f 70 65 6e |milar to|.an Open|
|00001f70| 44 6f 63 75 6d 65 6e 74 | 2c 20 62 75 74 20 49 20 |Document|, but I |
|00001f80| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 74 6f 20 70 61 |would li|ke to pa|
|00001f90| 73 73 20 61 20 73 74 72 | 69 6e 67 0d 74 68 61 74 |ss a str|ing.that|
|00001fa0| 20 74 68 65 20 72 65 63 | 69 65 76 69 6e 67 20 70 | the rec|ieving p|
|00001fb0| 72 6f 67 72 61 6d 20 74 | 68 61 74 20 77 6f 75 6c |rogram t|hat woul|
|00001fc0| 64 20 67 69 76 65 20 69 | 74 20 74 68 65 0d 6e 65 |d give i|t the.ne|
|00001fd0| 65 64 65 64 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |eded inf|ormation|
|00001fe0| 2e 20 20 41 6c 6c 20 6f | 66 20 6d 79 20 61 74 74 |. All o|f my att|
|00001ff0| 65 6d 70 74 73 20 61 74 | 20 69 6d 70 6c 69 6d 65 |empts at| implime|
|00002000| 6e 74 69 6e 67 0d 74 68 | 69 73 20 68 61 76 65 20 |nting.th|is have |
|00002010| 6e 6f 74 20 73 75 63 63 | 65 65 64 65 64 2c 20 73 |not succ|eeded, s|
|00002020| 6f 20 61 6e 79 20 65 78 | 61 6d 70 6c 65 73 20 77 |o any ex|amples w|
|00002030| 6f 75 6c 64 20 62 65 0d | 67 72 65 61 74 6c 79 20 |ould be.|greatly |
|00002040| 61 70 70 72 65 63 69 61 | 74 65 64 2e 0d 0d 4a 6f |apprecia|ted...Jo|
|00002050| 6e 20 4c 69 70 73 6b 79 | 20 28 6a 6d 6c 31 36 40 |n Lipsky| (jml16@|
|00002060| 70 6f 2e 63 77 72 75 2e | 65 64 75 29 0d 0d 2b 2b |po.cwru.|edu)..++|
|00002070| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00002080| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 0d 0d 3e 46 72 6f 6d |++++++++|+..>From|
|00002090| 20 48 65 72 65 40 54 68 | 65 72 65 20 28 53 6f 6d | Here@Th|ere (Som|
|000020a0| 65 6f 6e 65 29 0d 44 61 | 74 65 3a 20 31 30 20 4a |eone).Da|te: 10 J|
|000020b0| 75 6e 20 31 39 39 34 20 | 31 37 3a 32 39 3a 35 30 |un 1994 |17:29:50|
|000020c0| 20 47 4d 54 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|000020d0| 6e 3a 20 4c 61 72 67 65 | 20 46 75 7a 7a 79 20 52 |n: Large| Fuzzy R|
|000020e0| 6f 6f 6d 0d 0d 54 68 65 | 72 65 27 73 20 6c 6f 74 |oom..The|re's lot|
|000020f0| 73 20 6f 66 20 73 61 6d | 70 6c 65 73 20 61 72 6f |s of sam|ples aro|
|00002100| 75 6e 64 2c 20 61 64 61 | 70 74 69 6e 67 20 61 20 |und, ada|pting a |
|00002110| 27 72 65 61 6c 27 20 41 | 70 70 6c 65 45 76 65 6e |'real' A|ppleEven|
|00002120| 74 20 74 6f 20 79 6f 75 | 72 0d 70 72 69 76 61 74 |t to you|r.privat|
|00002130| 65 20 6e 65 65 64 73 20 | 77 69 6c 6c 20 62 65 20 |e needs |will be |
|00002140| 65 61 73 69 65 73 74 2e | 20 20 48 65 72 65 27 73 |easiest.| Here's|
|00002150| 20 6f 6e 65 20 77 61 79 | 20 79 6f 75 20 6d 69 67 | one way| you mig|
|00002160| 68 74 20 77 61 6e 74 20 | 74 6f 20 69 6d 70 6c 65 |ht want |to imple|
|00002170| 6d 65 6e 74 0d 74 68 65 | 20 73 65 6e 64 20 61 6e |ment.the| send an|
|00002180| 64 20 72 65 63 69 65 76 | 65 20 66 75 6e 63 74 69 |d reciev|e functi|
|00002190| 6f 6e 73 20 28 56 45 52 | 59 20 73 69 6d 70 6c 65 |ons (VER|Y simple|
|000021a0| 20 68 65 72 65 29 0d 0d | 2f 2f 20 61 20 63 6f 75 | here)..|// a cou|
|000021b0| 70 6c 61 20 64 65 66 69 | 6e 65 73 0d 23 64 65 66 |pla defi|nes.#def|
|000021c0| 69 6e 65 20 6b 4d 79 50 | 72 69 76 61 74 65 45 76 |ine kMyP|rivateEv|
|000021d0| 65 6e 74 43 6c 61 73 73 | 20 27 4d 59 45 56 27 0d |entClass| 'MYEV'.|
|000021e0| 23 64 65 66 69 6e 65 20 | 6b 4f 70 65 6e 46 69 6c |#define |kOpenFil|
|000021f0| 65 53 74 72 69 6e 67 45 | 76 65 6e 74 20 27 4f 50 |eStringE|vent 'OP|
|00002200| 46 53 27 0d 23 64 65 66 | 69 6e 65 20 74 79 70 65 |FS'.#def|ine type|
|00002210| 4d 79 50 53 74 72 69 6e | 67 20 27 4d 50 53 54 27 |MyPStrin|g 'MPST'|
|00002220| 0d 2f 2f 20 47 65 74 20 | 74 68 65 20 61 64 64 72 |.// Get |the addr|
|00002230| 65 73 73 20 28 74 68 72 | 6f 75 67 68 20 50 50 43 |ess (thr|ough PPC|
|00002240| 42 72 6f 77 73 65 72 20 | 6f 72 20 65 6c 73 65 77 |Browser |or elsew|
|00002250| 68 65 72 65 29 20 61 6e | 64 20 74 68 65 20 0d 2f |here) an|d the ./|
|00002260| 2f 20 66 69 6c 65 20 73 | 74 72 69 6e 67 20 61 6e |/ file s|tring an|
|00002270| 64 20 70 61 73 73 20 74 | 68 65 6d 20 69 6e 0d 4f |d pass t|hem in.O|
|00002280| 53 45 72 72 20 53 65 6e | 64 46 69 6c 65 4e 61 6d |SErr Sen|dFileNam|
|00002290| 65 53 74 72 69 6e 67 28 | 43 6f 6e 73 74 53 74 72 |eString(|ConstStr|
|000022a0| 32 35 35 20 74 68 65 46 | 75 6c 6c 50 61 74 68 2c |255 theF|ullPath,|
|000022b0| 41 45 44 65 73 63 20 2a | 20 74 68 65 41 64 64 72 |AEDesc *| theAddr|
|000022c0| 65 73 73 29 0d 7b 0d 41 | 70 70 6c 65 45 76 65 6e |ess).{.A|ppleEven|
|000022d0| 74 20 74 68 65 45 76 65 | 6e 74 3b 0d 4f 53 45 72 |t theEve|nt;.OSEr|
|000022e0| 72 20 74 68 65 45 72 72 | 6f 72 20 3d 20 6e 6f 45 |r theErr|or = noE|
|000022f0| 72 72 3b 0d 2f 2f 20 63 | 72 65 61 74 65 20 74 68 |rr;.// c|reate th|
|00002300| 65 20 65 76 65 6e 74 0d | 74 68 65 45 72 72 6f 72 |e event.|theError|
|00002310| 20 3d 20 41 45 43 72 65 | 61 74 65 41 70 70 6c 65 | = AECre|ateApple|
|00002320| 45 76 65 6e 74 28 6b 4d | 79 50 72 69 76 61 74 65 |Event(kM|yPrivate|
|00002330| 45 76 65 6e 74 43 6c 61 | 73 73 2c 6b 4f 70 65 6e |EventCla|ss,kOpen|
|00002340| 46 69 6c 65 53 74 72 69 | 6e 67 45 76 65 6e 74 2c |FileStri|ngEvent,|
|00002350| 0d 74 68 65 41 64 64 72 | 65 73 73 2c 6b 41 75 74 |.theAddr|ess,kAut|
|00002360| 6f 47 65 6e 65 72 61 74 | 65 52 65 74 75 72 6e 49 |oGenerat|eReturnI|
|00002370| 44 2c 6b 41 6e 79 54 72 | 61 6e 73 61 63 74 69 6f |D,kAnyTr|ansactio|
|00002380| 6e 49 44 2c 26 74 68 65 | 45 76 65 6e 74 29 3b 0d |nID,&the|Event);.|
|00002390| 2f 2f 20 69 66 20 6e 6f | 20 65 72 72 6f 72 2c 20 |// if no| error, |
|000023a0| 61 64 64 20 6f 75 72 20 | 73 74 72 69 6e 67 0d 69 |add our |string.i|
|000023b0| 66 28 74 68 65 45 72 72 | 6f 72 20 3d 3d 20 6e 6f |f(theErr|or == no|
|000023c0| 45 72 72 29 0d 74 68 65 | 45 72 72 6f 72 3d 0d 41 |Err).the|Error=.A|
|000023d0| 45 50 75 74 50 61 72 61 | 6d 50 74 72 28 26 74 68 |EPutPara|mPtr(&th|
|000023e0| 65 45 76 65 6e 74 2c 6b | 65 79 44 69 72 65 63 74 |eEvent,k|eyDirect|
|000023f0| 4f 62 6a 65 63 74 2c 74 | 79 70 65 4d 79 50 53 74 |Object,t|ypeMyPSt|
|00002400| 72 69 6e 67 2c 28 50 74 | 72 29 26 74 68 65 46 75 |ring,(Pt|r)&theFu|
|00002410| 6c 6c 50 61 74 68 5b 31 | 5d 2c 74 68 65 46 75 6c |llPath[1|],theFul|
|00002420| 6c 50 61 74 68 5b 30 5d | 29 3b 0d 2f 2f 20 73 65 |lPath[0]|);.// se|
|00002430| 6e 64 20 74 68 65 20 65 | 76 65 6e 74 0d 69 66 28 |nd the e|vent.if(|
|00002440| 74 68 65 45 72 72 6f 72 | 20 3d 3d 20 6e 6f 45 72 |theError| == noEr|
|00002450| 72 29 0d 74 68 65 45 72 | 72 6f 72 20 3d 0d 41 45 |r).theEr|ror =.AE|
|00002460| 53 65 6e 64 28 26 74 68 | 65 45 76 65 6e 74 2c 6e |Send(&th|eEvent,n|
|00002470| 69 6c 2c 6b 41 45 4e 6f | 52 65 70 6c 79 2c 6b 41 |il,kAENo|Reply,kA|
|00002480| 45 4e 6f 72 6d 61 6c 50 | 72 69 6f 72 69 74 79 2c |ENormalP|riority,|
|00002490| 6b 41 45 44 65 66 61 75 | 6c 74 54 69 6d 65 6f 75 |kAEDefau|ltTimeou|
|000024a0| 74 2c 28 49 64 6c 65 50 | 72 6f 63 50 74 72 29 0d |t,(IdleP|rocPtr).|
|000024b0| 6e 69 6c 2c 6e 69 6c 29 | 3b 0d 0d 72 65 74 75 72 |nil,nil)|;..retur|
|000024c0| 6e 28 20 74 68 65 45 72 | 72 6f 72 20 29 3b 0d 7d |n( theEr|ror );.}|
|000024d0| 0d 0d 0d 2f 2f 20 61 6e | 64 20 6f 6e 20 74 68 65 |...// an|d on the|
|000024e0| 20 72 65 63 69 65 76 69 | 6e 67 20 65 6e 64 2c 20 | recievi|ng end, |
|000024f0| 67 65 74 20 74 68 65 20 | 74 68 69 6e 67 20 6f 75 |get the |thing ou|
|00002500| 74 0d 0d 70 61 73 63 61 | 6c 20 4f 53 45 72 72 20 |t..pasca|l OSErr |
|00002510| 48 61 6e 64 6c 65 4d 79 | 4f 70 65 6e 46 69 6c 65 |HandleMy|OpenFile|
|00002520| 53 74 72 28 41 70 70 6c | 65 45 76 65 6e 74 20 2a |Str(Appl|eEvent *|
|00002530| 6d 65 73 73 61 67 65 69 | 6e 2c 20 41 70 70 6c 65 |messagei|n, Apple|
|00002540| 45 76 65 6e 74 20 2a 72 | 65 70 6c 79 2c 0d 6c 6f |Event *r|eply,.lo|
|00002550| 6e 67 20 72 65 66 49 6e | 29 0d 7b 4f 53 45 72 72 |ng refIn|).{OSErr|
|00002560| 20 74 68 65 45 72 72 6f | 72 20 3d 20 6e 6f 45 72 | theErro|r = noEr|
|00002570| 72 3b 0d 53 74 72 32 35 | 35 20 66 69 6c 65 53 74 |r;.Str25|5 fileSt|
|00002580| 72 69 6e 67 3b 0d 44 65 | 73 63 54 79 70 65 20 72 |ring;.De|scType r|
|00002590| 65 74 75 72 6e 65 64 54 | 79 70 65 3b 0d 53 69 7a |eturnedT|ype;.Siz|
|000025a0| 65 20 72 65 74 75 72 6e | 65 64 53 69 7a 65 3b 0d |e return|edSize;.|
|000025b0| 2f 2f 20 67 65 74 20 74 | 68 65 20 73 74 72 69 6e |// get t|he strin|
|000025c0| 67 20 66 72 6f 6d 20 74 | 68 65 20 65 76 65 6e 74 |g from t|he event|
|000025d0| 0d 74 68 65 45 72 72 6f | 72 20 3d 20 41 45 47 65 |.theErro|r = AEGe|
|000025e0| 74 50 61 72 61 6d 50 74 | 72 28 6d 65 73 73 61 67 |tParamPt|r(messag|
|000025f0| 65 69 6e 2c 20 20 20 2f | 2f 20 66 72 6f 6d 20 74 |ein, /|/ from t|
|00002600| 68 69 73 20 65 76 65 6e | 74 0d 20 20 20 20 20 20 |his even|t. |
|00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002620| 20 20 20 20 20 6b 65 79 | 44 69 72 65 63 74 4f 62 | key|DirectOb|
|00002630| 6a 65 63 74 2c 20 20 20 | 20 2f 2f 20 67 65 74 20 |ject, | // get |
|00002640| 74 68 65 20 64 69 72 65 | 63 74 20 6f 62 6a 65 63 |the dire|ct objec|
|00002650| 74 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t. | |
|00002660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 79 70 | | typ|
|00002670| 65 4d 79 50 53 74 72 69 | 6e 67 2c 20 20 20 20 20 |eMyPStri|ng, |
|00002680| 20 20 2f 2f 20 61 73 20 | 61 20 70 73 74 72 69 6e | // as |a pstrin|
|00002690| 67 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |g. | |
|000026a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 26 72 65 | | &re|
|000026b0| 74 75 72 6e 65 64 54 79 | 70 65 2c 20 20 20 20 20 |turnedTy|pe, |
|000026c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000026d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 50 74 72 | | (Ptr|
|000026e0| 29 26 66 69 6c 65 53 74 | 72 69 6e 67 5b 31 5d 2c |)&fileSt|ring[1],|
|000026f0| 20 20 2f 2f 20 70 75 74 | 20 69 74 20 68 65 72 65 | // put| it here|
|00002700| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002710| 20 20 20 20 20 20 20 20 | 20 20 20 20 32 35 34 2c | | 254,|
|00002720| 20 20 09 2f 2f 20 6d 61 | 78 20 73 69 7a 65 0d 20 | .// ma|x size. |
|00002730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002740| 20 20 20 20 20 20 20 20 | 20 20 26 72 65 74 75 72 | | &retur|
|00002750| 6e 65 64 53 69 7a 65 29 | 3b 0d 69 66 28 74 68 65 |nedSize)|;.if(the|
|00002760| 45 72 72 6f 72 20 3d 3d | 20 6e 6f 45 72 72 29 7b |Error ==| noErr){|
|00002770| 0d 66 69 6c 65 53 74 72 | 69 6e 67 5b 30 5d 20 3d |.fileStr|ing[0] =|
|00002780| 20 72 65 74 75 72 6e 65 | 64 53 69 7a 65 3b 0d 74 | returne|dSize;.t|
|00002790| 68 65 45 72 72 6f 72 20 | 20 3d 20 46 53 4f 70 65 |heError | = FSOpe|
|000027a0| 6e 28 66 69 6c 65 53 74 | 72 69 6e 67 2c 20 6e 69 |n(fileSt|ring, ni|
|000027b0| 6c 2c 26 66 69 6c 65 52 | 65 66 4e 75 6d 29 3b 0d |l,&fileR|efNum);.|
|000027c0| 2f 2f 20 66 69 6c 65 52 | 65 66 4e 75 6d 20 69 73 |// fileR|efNum is|
|000027d0| 20 73 6f 6d 65 77 68 65 | 72 65 2c 20 77 68 65 72 | somewhe|re, wher|
|000027e0| 65 65 76 65 72 20 79 6f | 75 20 6e 65 65 64 20 69 |eever yo|u need i|
|000027f0| 74 0d 7d 0d 72 65 74 75 | 72 6e 20 28 20 74 68 65 |t.}.retu|rn ( the|
|00002800| 45 72 72 6f 72 29 3b 0d | 7d 0d 0d 2d 2d 2d 2d 2d |Error);.|}..-----|
|00002810| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002820| 2d 2d 2d 2d 2d 2d 0d 0d | 3e 46 72 6f 6d 20 63 72 |------..|>From cr|
|00002830| 40 63 73 2e 73 74 72 61 | 74 68 2e 61 63 2e 75 6b |@cs.stra|th.ac.uk|
|00002840| 20 28 43 68 72 69 73 20 | 52 65 69 64 29 0d 53 75 | (Chris |Reid).Su|
|00002850| 62 6a 65 63 74 3a 20 41 | 72 65 20 4e 65 77 50 74 |bject: A|re NewPt|
|00002860| 72 28 29 20 61 6e 64 20 | 6d 61 6c 6c 6f 63 28 29 |r() and |malloc()|
|00002870| 20 64 69 66 66 65 72 65 | 6e 74 3f 20 28 73 6f 75 | differe|nt? (sou|
|00002880| 72 63 65 20 69 6e 63 6c | 75 64 65 64 29 0d 44 61 |rce incl|uded).Da|
|00002890| 74 65 3a 20 4d 6f 6e 2c | 20 30 36 20 4a 75 6e 20 |te: Mon,| 06 Jun |
|000028a0| 31 39 39 34 20 31 32 3a | 31 35 3a 35 32 20 2b 30 |1994 12:|15:52 +0|
|000028b0| 30 30 30 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |000.Orga|nization|
|000028c0| 3a 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |: Univer|sity of |
|000028d0| 53 74 72 61 74 68 63 6c | 79 64 65 0d 0d 48 69 20 |Strathcl|yde..Hi |
|000028e0| 65 76 65 72 79 62 6f 64 | 79 2c 0d 0d 49 20 68 61 |everybod|y,..I ha|
|000028f0| 76 65 20 77 72 69 74 74 | 65 6e 20 73 6f 6d 65 20 |ve writt|en some |
|00002900| 63 6f 64 65 20 74 68 61 | 74 20 69 6d 70 6c 65 6d |code tha|t implem|
|00002910| 65 6e 74 73 20 52 61 64 | 69 78 20 53 6f 72 74 20 |ents Rad|ix Sort |
|00002920| 28 69 74 20 73 6f 72 74 | 73 0d 61 6e 20 61 72 72 |(it sort|s.an arr|
|00002930| 61 79 20 6f 66 20 6c 6f | 6e 67 73 20 69 6e 20 6c |ay of lo|ngs in l|
|00002940| 69 6e 65 61 72 20 74 69 | 6d 65 29 2e 20 49 74 20 |inear ti|me). It |
|00002950| 73 65 65 6d 73 20 74 6f | 20 77 6f 72 6b 20 77 65 |seems to| work we|
|00002960| 6c 6c 20 65 6e 6f 75 67 | 68 2c 0d 62 75 74 20 6f |ll enoug|h,.but o|
|00002970| 6e 65 20 74 68 69 6e 67 | 20 69 73 20 72 65 61 6c |ne thing| is real|
|00002980| 6c 79 20 73 74 72 61 6e | 67 65 3a 20 77 68 65 6e |ly stran|ge: when|
|00002990| 20 49 20 72 65 70 6c 61 | 63 65 20 74 68 65 20 4e | I repla|ce the N|
|000029a0| 65 77 50 74 72 28 29 0d | 63 61 6c 6c 73 20 77 69 |ewPtr().|calls wi|
|000029b0| 74 68 20 63 61 6c 6c 73 | 20 74 6f 20 6d 61 6c 6c |th calls| to mall|
|000029c0| 6f 63 28 29 2c 20 74 68 | 65 20 63 6f 72 72 65 73 |oc(), th|e corres|
|000029d0| 70 6f 6e 64 69 6e 67 20 | 66 72 65 65 28 29 20 64 |ponding |free() d|
|000029e0| 6f 65 73 6e 27 74 20 73 | 65 65 6d 0d 74 6f 20 77 |oesn't s|eem.to w|
|000029f0| 6f 72 6b 2e 20 48 65 72 | 65 27 73 20 72 6f 75 67 |ork. Her|e's roug|
|00002a00| 68 6c 79 20 77 68 61 74 | 20 68 61 70 70 65 6e 73 |hly what| happens|
|00002a10| 3a 0d 0d 0d 2f 2f 20 52 | 61 64 69 78 53 6f 72 74 |:...// R|adixSort|
|00002a20| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 75 73 69 | impleme|nted usi|
|00002a30| 6e 67 20 4e 65 77 50 74 | 72 28 29 20 61 6e 64 20 |ng NewPt|r() and |
|00002a40| 44 69 73 70 6f 73 50 74 | 72 28 29 0d 0d 6d 65 6d |DisposPt|r()..mem|
|00002a50| 20 3d 20 46 72 65 65 4d | 65 6d 28 29 3b 09 2f 2f | = FreeM|em();.//|
|00002a60| 20 57 65 27 76 65 20 67 | 6f 74 20 61 6d 6f 75 6e | We've g|ot amoun|
|00002a70| 74 20 27 6d 65 6d 27 20 | 62 79 74 65 73 20 69 6e |t 'mem' |bytes in|
|00002a80| 20 74 68 65 20 68 65 61 | 70 0d 52 61 64 69 78 53 | the hea|p.RadixS|
|00002a90| 6f 72 74 28 73 6f 6d 65 | 41 72 72 61 79 2c 20 6e |ort(some|Array, n|
|00002aa0| 75 6d 49 74 65 6d 73 29 | 3b 09 2f 2f 20 44 6f 20 |umItems)|;.// Do |
|00002ab0| 74 68 65 20 73 6f 72 74 | 69 6e 67 0d 77 61 73 74 |the sort|ing.wast|
|00002ac0| 65 20 3d 20 6d 65 6d 20 | 2d 20 46 72 65 65 4d 65 |e = mem |- FreeMe|
|00002ad0| 6d 28 29 3b 09 2f 2f 20 | 49 73 20 74 68 65 72 65 |m();.// |Is there|
|00002ae0| 20 61 20 6d 65 6d 6f 72 | 79 20 6c 65 61 6b 3f 0d | a memor|y leak?.|
|00002af0| 0d 77 61 73 74 65 20 69 | 73 20 61 6c 77 61 79 73 |.waste i|s always|
|00002b00| 20 7a 65 72 6f 20 28 6a | 75 73 74 20 61 73 20 69 | zero (j|ust as i|
|00002b10| 74 20 73 68 6f 75 6c 64 | 20 62 65 29 2c 20 42 55 |t should| be), BU|
|00002b20| 54 3a 0d 0d 2f 2f 20 52 | 61 64 69 78 53 6f 72 74 |T:..// R|adixSort|
|00002b30| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 75 73 69 | impleme|nted usi|
|00002b40| 6e 67 20 6d 61 6c 6c 6f | 63 28 29 20 61 6e 64 20 |ng mallo|c() and |
|00002b50| 66 72 65 65 28 29 0d 0d | 6d 65 6d 20 3d 20 46 72 |free()..|mem = Fr|
|00002b60| 65 65 4d 65 6d 28 29 3b | 09 2f 2f 20 57 65 27 76 |eeMem();|.// We'v|
|00002b70| 65 20 67 6f 74 20 61 6d | 6f 75 6e 74 20 27 6d 65 |e got am|ount 'me|
|00002b80| 6d 27 20 62 79 74 65 73 | 20 69 6e 20 74 68 65 20 |m' bytes| in the |
|00002b90| 68 65 61 70 0d 52 61 64 | 69 78 53 6f 72 74 28 73 |heap.Rad|ixSort(s|
|00002ba0| 6f 6d 65 41 72 72 61 79 | 2c 20 6e 75 6d 49 74 65 |omeArray|, numIte|
|00002bb0| 6d 73 29 3b 09 2f 2f 20 | 44 6f 20 74 68 65 20 73 |ms);.// |Do the s|
|00002bc0| 6f 72 74 69 6e 67 0d 77 | 61 73 74 65 20 3d 20 6d |orting.w|aste = m|
|00002bd0| 65 6d 20 2d 20 46 72 65 | 65 4d 65 6d 28 29 3b 09 |em - Fre|eMem();.|
|00002be0| 2f 2f 20 49 73 20 74 68 | 65 72 65 20 61 20 6d 65 |// Is th|ere a me|
|00002bf0| 6d 6f 72 79 20 6c 65 61 | 6b 3f 0d 0d 77 61 73 74 |mory lea|k?..wast|
|00002c00| 65 20 69 73 20 6e 6f 6e | 2d 7a 65 72 6f 2c 20 61 |e is non|-zero, a|
|00002c10| 20 76 65 72 79 20 64 69 | 73 74 75 72 62 69 6e 67 | very di|sturbing|
|00002c20| 20 66 61 63 74 2e 20 42 | 75 74 20 69 74 20 67 65 | fact. B|ut it ge|
|00002c30| 74 73 20 65 76 65 6e 20 | 62 65 74 74 65 72 2c 0d |ts even |better,.|
|00002c40| 62 65 63 61 75 73 65 20 | 6f 6e 20 63 6f 6e 73 65 |because |on conse|
|00002c50| 63 75 74 69 76 65 20 63 | 61 6c 6c 73 2c 20 77 61 |cutive c|alls, wa|
|00002c60| 73 74 65 20 49 53 20 7a | 65 72 6f 2e 20 49 74 20 |ste IS z|ero. It |
|00002c70| 6c 6f 6f 6b 73 20 61 73 | 20 69 66 0d 6d 61 6c 6c |looks as| if.mall|
|00002c80| 6f 63 28 29 20 72 65 6d | 65 62 65 72 73 20 77 68 |oc() rem|ebers wh|
|00002c90| 61 74 20 69 74 27 73 20 | 64 6f 6e 65 20 62 65 66 |at it's |done bef|
|00002ca0| 6f 72 65 2e 20 42 79 20 | 74 68 65 20 77 61 79 2c |ore. By |the way,|
|00002cb0| 20 49 20 6e 65 65 64 20 | 74 6f 0d 75 73 65 20 6d | I need |to.use m|
|00002cc0| 61 6c 6c 6f 63 28 29 20 | 62 65 63 61 75 73 65 20 |alloc() |because |
|00002cd0| 74 68 65 20 63 6f 64 65 | 20 68 61 73 20 74 6f 20 |the code| has to |
|00002ce0| 62 65 20 28 73 6f 72 74 | 20 6f 66 29 20 70 6c 61 |be (sort| of) pla|
|00002cf0| 74 66 6f 72 6d 20 69 6e | 64 65 70 65 6e 64 65 6e |tform in|dependen|
|00002d00| 74 2e 0d 0d 54 68 65 20 | 73 6f 75 72 63 65 20 69 |t...The |source i|
|00002d10| 73 20 61 74 74 61 63 68 | 65 64 20 28 68 65 6e 63 |s attach|ed (henc|
|00002d20| 65 20 74 68 65 20 63 72 | 6f 73 73 2d 70 6f 73 74 |e the cr|oss-post|
|00002d30| 69 6e 67 20 74 6f 20 61 | 6c 74 2e 73 6f 75 72 63 |ing to a|lt.sourc|
|00002d40| 65 73 2e 6d 61 63 29 2e | 0d 49 74 20 77 6f 72 6b |es.mac).|.It work|
|00002d50| 73 2c 20 73 6f 20 66 65 | 65 6c 20 66 72 65 65 20 |s, so fe|el free |
|00002d60| 74 6f 20 75 73 65 20 69 | 74 2e 20 53 6f 6d 65 74 |to use i|t. Somet|
|00002d70| 68 69 6e 67 20 6d 75 73 | 74 20 62 65 20 67 6f 69 |hing mus|t be goi|
|00002d80| 6e 67 20 77 72 6f 6e 67 | 20 73 6f 6d 65 77 68 65 |ng wrong| somewhe|
|00002d90| 72 65 2c 0d 49 20 63 61 | 6e 27 74 20 73 65 65 20 |re,.I ca|n't see |
|00002da0| 69 74 2c 20 63 61 6e 20 | 61 6e 79 62 6f 64 79 20 |it, can |anybody |
|00002db0| 65 6c 73 65 3f 20 49 27 | 6d 20 75 73 69 6e 67 20 |else? I'|m using |
|00002dc0| 54 48 49 4e 4b 20 43 20 | 36 2e 30 2e 31 20 77 69 |THINK C |6.0.1 wi|
|00002dd0| 74 68 20 4f 62 6a 65 63 | 74 73 2e 0d 0d 54 68 61 |th Objec|ts...Tha|
|00002de0| 6e 6b 73 20 69 6e 20 61 | 64 76 61 6e 63 65 20 66 |nks in a|dvance f|
|00002df0| 6f 6c 6b 73 21 0d 0d 0d | 43 68 72 69 73 0d 0d 50 |olks!...|Chris..P|
|00002e00| 53 3a 20 61 20 64 65 73 | 63 72 69 70 74 69 6f 6e |S: a des|cription|
|00002e10| 20 6f 66 20 52 61 64 69 | 78 20 53 6f 72 74 20 63 | of Radi|x Sort c|
|00002e20| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 69 6e 20 61 |an be fo|und in a|
|00002e30| 6c 6d 6f 73 74 20 61 6e | 79 20 62 6f 6f 6b 73 20 |lmost an|y books |
|00002e40| 6f 6e 0d 61 6c 67 6f 72 | 69 74 68 6d 73 0d 0d 2f |on.algor|ithms../|
|00002e50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 20 52 61 64 69 78 |********|** Radix|
|00002e60| 20 53 6f 72 74 20 53 6f | 75 72 63 65 20 2a 2a 2a | Sort So|urce ***|
|00002e70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e80| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |******/.|.#define|
|00002e90| 20 4d 41 43 0d 0d 23 69 | 66 64 65 66 20 4d 41 43 | MAC..#i|fdef MAC|
|00002ea0| 0d 23 64 65 66 69 6e 65 | 20 42 59 54 45 30 20 33 |.#define| BYTE0 3|
|00002eb0| 0d 23 64 65 66 69 6e 65 | 20 42 59 54 45 31 20 32 |.#define| BYTE1 2|
|00002ec0| 0d 23 64 65 66 69 6e 65 | 20 42 59 54 45 32 20 31 |.#define| BYTE2 1|
|00002ed0| 0d 23 64 65 66 69 6e 65 | 20 42 59 54 45 33 20 30 |.#define| BYTE3 0|
|00002ee0| 0d 23 65 6e 64 69 66 0d | 0d 2f 2f 20 66 6f 72 20 |.#endif.|.// for |
|00002ef0| 50 43 27 73 20 6f 72 20 | 61 6e 79 20 6f 74 68 65 |PC's or |any othe|
|00002f00| 72 20 42 69 67 20 45 6e | 64 69 61 6e 2e 2e 2e 0d |r Big En|dian....|
|00002f10| 23 69 66 64 65 66 20 50 | 43 0d 23 64 65 66 69 6e |#ifdef P|C.#defin|
|00002f20| 65 20 42 59 54 45 30 20 | 30 0d 23 64 65 66 69 6e |e BYTE0 |0.#defin|
|00002f30| 65 20 42 59 54 45 31 20 | 31 0d 23 64 65 66 69 6e |e BYTE1 |1.#defin|
|00002f40| 65 20 42 59 54 45 32 20 | 32 0d 23 64 65 66 69 6e |e BYTE2 |2.#defin|
|00002f50| 65 20 42 59 54 45 33 20 | 33 0d 23 65 6e 64 69 66 |e BYTE3 |3.#endif|
|00002f60| 0d 0d 23 64 65 66 69 6e | 65 20 6b 4e 75 6d 45 6c |..#defin|e kNumEl|
|00002f70| 65 6d 65 6e 74 73 09 35 | 30 30 09 09 2f 2f 20 61 |ements.5|00..// a|
|00002f80| 6c 6c 6f 63 61 74 65 20 | 73 70 61 63 65 20 66 6f |llocate |space fo|
|00002f90| 72 20 35 30 30 20 6c 6f | 6e 67 73 20 61 74 20 61 |r 500 lo|ngs at a|
|00002fa0| 20 74 69 6d 65 0d 23 64 | 65 66 69 6e 65 20 6b 4e | time.#d|efine kN|
|00002fb0| 75 6d 50 61 73 73 65 73 | 09 09 34 09 09 09 09 09 |umPasses|..4.....|
|00002fc0| 2f 2f 20 33 32 20 62 69 | 74 20 6c 6f 6e 67 73 20 |// 32 bi|t longs |
|00002fd0| 2d 20 73 70 6c 69 74 20 | 69 6e 74 6f 20 34 20 2a |- split |into 4 *|
|00002fe0| 20 38 20 62 69 74 73 0d | 23 64 65 66 69 6e 65 20 | 8 bits.|#define |
|00002ff0| 6b 4e 75 6d 42 75 63 6b | 65 74 73 09 09 32 35 36 |kNumBuck|ets..256|
|00003000| 20 20 2f 2f 20 72 65 71 | 75 69 72 65 20 32 35 36 | // req|uire 256|
|00003010| 20 62 75 63 6b 65 74 73 | 0d 23 64 65 66 69 6e 65 | buckets|.#define|
|00003020| 20 6b 4d 61 78 42 75 66 | 66 65 72 09 09 31 30 30 | kMaxBuf|fer..100|
|00003030| 09 09 09 2f 2f 20 73 6f | 72 74 20 61 74 20 6d 6f |...// so|rt at mo|
|00003040| 73 74 20 31 30 30 20 2a | 20 35 30 30 20 3d 20 35 |st 100 *| 500 = 5|
|00003050| 30 30 30 30 20 69 74 65 | 6d 73 0d 0d 74 79 70 65 |0000 ite|ms..type|
|00003060| 64 65 66 20 6c 6f 6e 67 | 09 42 75 66 66 65 72 5b |def long|.Buffer[|
|00003070| 6b 4e 75 6d 45 6c 65 6d | 65 6e 74 73 5d 3b 09 2f |kNumElem|ents];./|
|00003080| 2f 20 77 65 20 64 6f 6e | 27 74 20 77 61 6e 74 20 |/ we don|'t want |
|00003090| 74 6f 20 68 61 6d 6d 65 | 72 20 74 68 65 20 6d 65 |to hamme|r the me|
|000030a0| 6d 6f 72 79 0d 6d 61 6e | 61 67 65 72 0d 74 79 70 |mory.man|ager.typ|
|000030b0| 65 64 65 66 20 42 75 66 | 66 65 72 09 2a 42 75 66 |edef Buf|fer.*Buf|
|000030c0| 66 65 72 50 74 72 3b 09 | 09 09 09 09 09 09 09 09 |ferPtr;.|........|
|000030d0| 2f 2f 20 73 6f 20 77 65 | 20 61 6c 6c 6f 63 61 74 |// so we| allocat|
|000030e0| 65 20 73 70 61 63 65 20 | 66 6f 72 20 35 30 30 20 |e space |for 500 |
|000030f0| 6c 6f 6e 67 73 0d 0d 74 | 79 70 65 64 65 66 20 73 |longs..t|ypedef s|
|00003100| 74 72 75 63 74 0d 09 09 | 7b 0d 09 09 09 42 75 66 |truct...|{....Buf|
|00003110| 66 65 72 50 74 72 09 09 | 74 68 65 42 75 66 66 65 |ferPtr..|theBuffe|
|00003120| 72 73 5b 6b 4d 61 78 42 | 75 66 66 65 72 5d 3b 20 |rs[kMaxB|uffer]; |
|00003130| 2f 2f 20 68 6f 6c 64 20 | 74 68 65 20 69 74 65 6d |// hold |the item|
|00003140| 73 20 61 73 20 74 68 65 | 79 20 61 72 65 20 61 64 |s as the|y are ad|
|00003150| 64 65 64 0d 09 09 09 6c | 6f 6e 67 09 09 09 6e 75 |ded....l|ong...nu|
|00003160| 6d 49 74 65 6d 73 3b 09 | 09 09 09 09 09 09 09 09 |mItems;.|........|
|00003170| 09 09 09 09 09 09 09 09 | 09 09 2f 2f 20 68 6f 77 |........|..// how|
|00003180| 20 6d 61 6e 79 20 28 66 | 69 6c 6c 65 64 29 20 62 | many (f|illed) b|
|00003190| 75 66 66 65 72 73 20 68 | 61 76 65 20 77 65 0d 67 |uffers h|ave we.g|
|000031a0| 6f 74 3f 0d 09 09 09 6c | 6f 6e 67 09 09 09 63 75 |ot?....l|ong...cu|
|000031b0| 72 72 65 6e 74 3b 09 09 | 09 09 09 09 09 09 09 09 |rrent;..|........|
|000031c0| 09 09 09 09 09 09 09 09 | 09 09 2f 2f 20 77 68 65 |........|..// whe|
|000031d0| 72 65 20 64 6f 65 73 20 | 6e 65 78 74 20 69 74 65 |re does |next ite|
|000031e0| 6d 20 67 6f 3f 0d 09 09 | 7d 20 42 75 63 6b 65 74 |m go?...|} Bucket|
|000031f0| 2c 20 2a 42 75 63 6b 65 | 74 50 74 72 3b 0d 09 09 |, *Bucke|tPtr;...|
|00003200| 0d 0d 73 74 61 74 69 63 | 20 42 75 63 6b 65 74 50 |..static| BucketP|
|00003210| 74 72 20 74 68 65 42 75 | 63 6b 65 74 73 5b 6b 4e |tr theBu|ckets[kN|
|00003220| 75 6d 42 75 63 6b 65 74 | 73 5d 3b 09 2f 2f 20 6f |umBucket|s];.// o|
|00003230| 75 72 20 62 75 63 6b 65 | 74 73 2e 2e 2e 0d 0d 0d |ur bucke|ts......|
|00003240| 2f 2f 20 61 6c 6c 6f 63 | 61 74 65 20 73 70 61 63 |// alloc|ate spac|
|00003250| 65 20 66 6f 72 20 74 68 | 65 20 62 75 63 6b 65 74 |e for th|e bucket|
|00003260| 73 20 61 6e 64 20 69 6e | 69 74 0d 76 6f 69 64 20 |s and in|it.void |
|00003270| 53 65 74 75 70 42 75 63 | 6b 65 74 73 28 76 6f 69 |SetupBuc|kets(voi|
|00003280| 64 29 0d 7b 0d 09 6c 6f | 6e 67 09 69 2c 20 6b 3b |d).{..lo|ng.i, k;|
|00003290| 0d 09 0d 09 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |....for |(i = 0; |
|000032a0| 69 20 3c 20 6b 4e 75 6d | 42 75 63 6b 65 74 73 3b |i < kNum|Buckets;|
|000032b0| 20 69 2b 2b 29 0d 09 7b | 0d 09 09 74 68 65 42 75 | i++)..{|...theBu|
|000032c0| 63 6b 65 74 73 5b 69 5d | 20 3d 20 28 42 75 63 6b |ckets[i]| = (Buck|
|000032d0| 65 74 50 74 72 29 20 4e | 65 77 50 74 72 28 73 69 |etPtr) N|ewPtr(si|
|000032e0| 7a 65 6f 66 28 42 75 63 | 6b 65 74 29 29 3b 0d 09 |zeof(Buc|ket));..|
|000032f0| 09 0d 09 09 66 6f 72 20 | 28 6b 20 3d 20 30 3b 20 |....for |(k = 0; |
|00003300| 6b 20 3c 20 6b 4d 61 78 | 42 75 66 66 65 72 3b 20 |k < kMax|Buffer; |
|00003310| 6b 2b 2b 29 20 74 68 65 | 42 75 63 6b 65 74 73 5b |k++) the|Buckets[|
|00003320| 69 5d 2d 3e 74 68 65 42 | 75 66 66 65 72 73 5b 6b |i]->theB|uffers[k|
|00003330| 5d 20 3d 20 4e 55 4c 4c | 3b 0d 09 09 74 68 65 42 |] = NULL|;...theB|
|00003340| 75 63 6b 65 74 73 5b 69 | 5d 2d 3e 6e 75 6d 49 74 |uckets[i|]->numIt|
|00003350| 65 6d 73 20 3d 20 30 3b | 0d 09 09 74 68 65 42 75 |ems = 0;|...theBu|
|00003360| 63 6b 65 74 73 5b 69 5d | 2d 3e 63 75 72 72 65 6e |ckets[i]|->curren|
|00003370| 74 20 3d 20 30 3b 0d 09 | 7d 0d 7d 0d 0d 2f 2f 20 |t = 0;..|}.}..// |
|00003380| 57 65 27 72 65 20 64 6f | 6e 65 2c 20 72 65 6c 65 |We're do|ne, rele|
|00003390| 61 73 65 20 6d 65 6d 6f | 72 79 0d 76 6f 69 64 20 |ase memo|ry.void |
|000033a0| 43 6c 65 61 72 42 75 63 | 6b 65 74 73 28 76 6f 69 |ClearBuc|kets(voi|
|000033b0| 64 29 0d 7b 0d 09 6c 6f | 6e 67 09 69 2c 20 6b 3b |d).{..lo|ng.i, k;|
|000033c0| 0d 09 0d 09 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |....for |(i = 0; |
|000033d0| 69 20 3c 20 6b 4e 75 6d | 42 75 63 6b 65 74 73 3b |i < kNum|Buckets;|
|000033e0| 20 69 2b 2b 29 0d 09 7b | 0d 09 09 66 6f 72 20 28 | i++)..{|...for (|
|000033f0| 6b 20 3d 20 30 3b 20 74 | 68 65 42 75 63 6b 65 74 |k = 0; t|heBucket|
|00003400| 73 5b 69 5d 2d 3e 74 68 | 65 42 75 66 66 65 72 73 |s[i]->th|eBuffers|
|00003410| 5b 6b 5d 20 21 3d 20 4e | 55 4c 4c 3b 20 6b 2b 2b |[k] != N|ULL; k++|
|00003420| 29 0d 09 09 7b 0d 09 09 | 09 44 69 73 70 6f 73 50 |)...{...|.DisposP|
|00003430| 74 72 28 28 50 74 72 29 | 20 74 68 65 42 75 63 6b |tr((Ptr)| theBuck|
|00003440| 65 74 73 5b 69 5d 2d 3e | 74 68 65 42 75 66 66 65 |ets[i]->|theBuffe|
|00003450| 72 73 5b 6b 5d 29 3b 0d | 09 09 7d 0d 09 09 44 69 |rs[k]);.|..}...Di|
|00003460| 73 70 6f 73 50 74 72 28 | 28 50 74 72 29 20 74 68 |sposPtr(|(Ptr) th|
|00003470| 65 42 75 63 6b 65 74 73 | 5b 69 5d 29 3b 0d 09 7d |eBuckets|[i]);..}|
|00003480| 0d 7d 0d 0d 2f 2f 20 53 | 74 75 66 66 20 77 68 61 |.}..// S|tuff wha|
|00003490| 74 20 77 65 27 76 65 20 | 70 75 74 20 69 6e 74 6f |t we've |put into|
|000034a0| 20 74 68 65 20 62 75 66 | 66 65 72 73 20 62 61 63 | the buf|fers bac|
|000034b0| 6b 20 69 6e 74 6f 20 74 | 68 65 20 61 72 72 61 79 |k into t|he array|
|000034c0| 20 61 6e 64 20 72 65 6c | 65 61 73 65 0d 6d 65 6d | and rel|ease.mem|
|000034d0| 2e 0d 76 6f 69 64 20 43 | 6f 70 79 42 75 63 6b 65 |..void C|opyBucke|
|000034e0| 74 73 28 6c 6f 6e 67 20 | 74 68 65 41 72 72 61 79 |ts(long |theArray|
|000034f0| 5b 5d 29 0d 7b 0d 09 72 | 65 67 69 73 74 65 72 20 |[]).{..r|egister |
|00003500| 6c 6f 6e 67 09 69 2c 20 | 6a 2c 20 6b 2c 20 6c 2c |long.i, |j, k, l,|
|00003510| 20 63 6f 75 6e 74 3b 0d | 09 0d 09 63 6f 75 6e 74 | count;.|...count|
|00003520| 20 3d 20 30 3b 0d 09 66 | 6f 72 20 28 69 20 3d 20 | = 0;..f|or (i = |
|00003530| 30 3b 20 69 20 3c 20 6b | 4e 75 6d 42 75 63 6b 65 |0; i < k|NumBucke|
|00003540| 74 73 3b 20 69 2b 2b 29 | 0d 09 7b 0d 09 09 66 6f |ts; i++)|..{...fo|
|00003550| 72 20 28 6a 20 3d 20 30 | 3b 20 6a 20 3c 3d 20 74 |r (j = 0|; j <= t|
|00003560| 68 65 42 75 63 6b 65 74 | 73 5b 69 5d 2d 3e 6e 75 |heBucket|s[i]->nu|
|00003570| 6d 49 74 65 6d 73 3b 20 | 6a 2b 2b 29 20 2f 2f 20 |mItems; |j++) // |
|00003580| 6e 75 6d 62 65 72 20 6f | 66 20 66 69 6c 6c 65 64 |number o|f filled|
|00003590| 0d 62 75 66 66 65 72 73 | 0d 09 09 7b 0d 09 09 09 |.buffers|...{....|
|000035a0| 69 66 20 28 6a 20 3c 20 | 74 68 65 42 75 63 6b 65 |if (j < |theBucke|
|000035b0| 74 73 5b 69 5d 2d 3e 6e | 75 6d 49 74 65 6d 73 29 |ts[i]->n|umItems)|
|000035c0| 20 6c 20 3d 20 6b 4e 75 | 6d 45 6c 65 6d 65 6e 74 | l = kNu|mElement|
|000035d0| 73 3b 20 2f 2f 66 75 6c | 6c 20 62 75 66 66 65 72 |s; //ful|l buffer|
|000035e0| 0d 09 09 09 65 6c 73 65 | 20 6c 20 3d 20 74 68 65 |....else| l = the|
|000035f0| 42 75 63 6b 65 74 73 5b | 69 5d 2d 3e 63 75 72 72 |Buckets[|i]->curr|
|00003600| 65 6e 74 3b 09 09 09 09 | 09 09 09 09 09 09 09 09 |ent;....|........|
|00003610| 09 09 09 09 09 09 09 2f | 2f 70 61 72 74 69 61 6c |......./|/partial|
|00003620| 6c 79 20 66 75 6c 6c 0d | 09 09 09 0d 09 09 09 66 |ly full.|.......f|
|00003630| 6f 72 20 28 6b 20 3d 20 | 30 3b 20 6b 20 3c 20 6c |or (k = |0; k < l|
|00003640| 3b 20 6b 2b 2b 29 0d 09 | 09 09 7b 0d 09 09 09 09 |; k++)..|..{.....|
|00003650| 74 68 65 41 72 72 61 79 | 5b 63 6f 75 6e 74 5d 20 |theArray|[count] |
|00003660| 3d 20 28 2a 74 68 65 42 | 75 63 6b 65 74 73 5b 69 |= (*theB|uckets[i|
|00003670| 5d 2d 3e 74 68 65 42 75 | 66 66 65 72 73 5b 6a 5d |]->theBu|ffers[j]|
|00003680| 29 5b 6b 5d 3b 0d 09 09 | 09 09 63 6f 75 6e 74 2b |)[k];...|..count+|
|00003690| 2b 3b 0d 09 09 09 7d 0d | 09 09 20 69 66 20 28 74 |+;....}.|.. if (t|
|000036a0| 68 65 42 75 63 6b 65 74 | 73 5b 69 5d 2d 3e 74 68 |heBucket|s[i]->th|
|000036b0| 65 42 75 66 66 65 72 73 | 5b 6a 5d 29 0d 09 09 09 |eBuffers|[j])....|
|000036c0| 7b 0d 09 09 09 09 66 72 | 65 65 28 28 76 6f 69 64 |{.....fr|ee((void|
|000036d0| 20 2a 29 20 74 68 65 42 | 75 63 6b 65 74 73 5b 69 | *) theB|uckets[i|
|000036e0| 5d 2d 3e 74 68 65 42 75 | 66 66 65 72 73 5b 6a 5d |]->theBu|ffers[j]|
|000036f0| 29 3b 0d 09 09 09 09 74 | 68 65 42 75 63 6b 65 74 |);.....t|heBucket|
|00003700| 73 5b 69 5d 2d 3e 74 68 | 65 42 75 66 66 65 72 73 |s[i]->th|eBuffers|
|00003710| 5b 6a 5d 20 3d 20 4e 55 | 4c 4c 3b 0d 09 09 09 7d |[j] = NU|LL;....}|
|00003720| 0d 09 09 7d 0d 09 09 74 | 68 65 42 75 63 6b 65 74 |...}...t|heBucket|
|00003730| 73 5b 69 5d 2d 3e 6e 75 | 6d 49 74 65 6d 73 20 3d |s[i]->nu|mItems =|
|00003740| 20 30 3b 0d 09 09 74 68 | 65 42 75 63 6b 65 74 73 | 0;...th|eBuckets|
|00003750| 5b 69 5d 2d 3e 63 75 72 | 72 65 6e 74 20 3d 20 30 |[i]->cur|rent = 0|
|00003760| 3b 0d 09 7d 0d 7d 0d 0d | 0d 76 6f 69 64 20 52 61 |;..}.}..|.void Ra|
|00003770| 64 69 78 53 6f 72 74 28 | 6c 6f 6e 67 20 74 68 65 |dixSort(|long the|
|00003780| 41 72 72 61 79 5b 5d 2c | 20 6c 6f 6e 67 20 6e 75 |Array[],| long nu|
|00003790| 6d 49 74 65 6d 73 29 0d | 7b 0d 09 72 65 67 69 73 |mItems).|{..regis|
|000037a0| 74 65 72 20 6c 6f 6e 67 | 09 69 2c 20 6b 3b 0d 09 |ter long|.i, k;..|
|000037b0| 72 65 67 69 73 74 65 72 | 20 75 6e 73 69 67 6e 65 |register| unsigne|
|000037c0| 64 20 63 68 61 72 09 63 | 3b 0d 09 73 68 6f 72 74 |d char.c|;..short|
|000037d0| 20 4f 66 66 73 65 74 5b | 6b 4e 75 6d 50 61 73 73 | Offset[|kNumPass|
|000037e0| 65 73 5d 20 3d 20 7b 42 | 59 54 45 30 2c 42 59 54 |es] = {B|YTE0,BYT|
|000037f0| 45 31 2c 42 59 54 45 32 | 2c 42 59 54 45 33 7d 3b |E1,BYTE2|,BYTE3};|
|00003800| 0d 20 09 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |. .unsig|ned char|
|00003810| 20 2a 70 3b 0d 0d 09 6c | 6f 6e 67 09 6d 65 6d 2c | *p;...l|ong.mem,|
|00003820| 20 77 61 73 74 65 3b 0d | 09 0d 09 6d 65 6d 20 3d | waste;.|...mem =|
|00003830| 20 46 72 65 65 4d 65 6d | 28 29 3b 0d 09 0d 09 53 | FreeMem|();....S|
|00003840| 65 74 75 70 42 75 63 6b | 65 74 73 28 29 3b 0d 09 |etupBuck|ets();..|
|00003850| 0d 09 66 6f 72 20 28 69 | 20 3d 20 30 3b 20 69 20 |..for (i| = 0; i |
|00003860| 3c 20 6b 4e 75 6d 50 61 | 73 73 65 73 3b 20 69 2b |< kNumPa|sses; i+|
|00003870| 2b 29 0d 09 7b 0d 09 09 | 66 6f 72 20 28 6b 20 3d |+)..{...|for (k =|
|00003880| 20 30 3b 20 6b 20 3c 20 | 6e 75 6d 49 74 65 6d 73 | 0; k < |numItems|
|00003890| 3b 20 6b 2b 2b 29 0d 09 | 09 7b 0d 09 09 09 0d 20 |; k++)..|.{..... |
|000038a0| 09 09 09 70 20 3d 20 28 | 75 6e 73 69 67 6e 65 64 |...p = (|unsigned|
|000038b0| 20 63 68 61 72 20 2a 29 | 20 26 74 68 65 41 72 72 | char *)| &theArr|
|000038c0| 61 79 5b 6b 5d 20 2b 20 | 4f 66 66 73 65 74 5b 69 |ay[k] + |Offset[i|
|000038d0| 5d 3b 0d 20 09 09 09 63 | 20 3d 20 2a 70 3b 0d 09 |];. ...c| = *p;..|
|000038e0| 09 09 69 66 20 28 21 74 | 68 65 42 75 63 6b 65 74 |..if (!t|heBucket|
|000038f0| 73 5b 63 5d 2d 3e 74 68 | 65 42 75 66 66 65 72 73 |s[c]->th|eBuffers|
|00003900| 5b 74 68 65 42 75 63 6b | 65 74 73 5b 63 5d 2d 3e |[theBuck|ets[c]->|
|00003910| 6e 75 6d 49 74 65 6d 73 | 5d 29 0d 09 09 09 7b 0d |numItems|])....{.|
|00003920| 09 09 09 09 74 68 65 42 | 75 63 6b 65 74 73 5b 63 |....theB|uckets[c|
|00003930| 5d 2d 3e 74 68 65 42 75 | 66 66 65 72 73 5b 74 68 |]->theBu|ffers[th|
|00003940| 65 42 75 63 6b 65 74 73 | 5b 63 5d 2d 3e 6e 75 6d |eBuckets|[c]->num|
|00003950| 49 74 65 6d 73 5d 20 3d | 20 28 42 75 66 66 65 72 |Items] =| (Buffer|
|00003960| 50 74 72 29 0d 6d 61 6c | 6c 6f 63 28 73 69 7a 65 |Ptr).mal|loc(size|
|00003970| 6f 66 28 42 75 66 66 65 | 72 29 29 3b 0d 09 09 09 |of(Buffe|r));....|
|00003980| 09 74 68 65 42 75 63 6b | 65 74 73 5b 63 5d 2d 3e |.theBuck|ets[c]->|
|00003990| 63 75 72 72 65 6e 74 20 | 3d 20 30 3b 0d 09 09 09 |current |= 0;....|
|000039a0| 7d 0d 09 09 09 0d 09 09 | 09 28 2a 74 68 65 42 75 |}.......|.(*theBu|
|000039b0| 63 6b 65 74 73 5b 63 5d | 2d 3e 74 68 65 42 75 66 |ckets[c]|->theBuf|
|000039c0| 66 65 72 73 5b 74 68 65 | 42 75 63 6b 65 74 73 5b |fers[the|Buckets[|
|000039d0| 63 5d 2d 3e 6e 75 6d 49 | 74 65 6d 73 5d 29 5b 74 |c]->numI|tems])[t|
|000039e0| 68 65 42 75 63 6b 65 74 | 73 5b 63 5d 2d 3e 63 75 |heBucket|s[c]->cu|
|000039f0| 72 72 65 6e 74 5d 0d 3d | 20 74 68 65 41 72 72 61 |rrent].=| theArra|
|00003a00| 79 5b 6b 5d 3b 0d 09 09 | 09 0d 09 09 09 74 68 65 |y[k];...|.....the|
|00003a10| 42 75 63 6b 65 74 73 5b | 63 5d 2d 3e 63 75 72 72 |Buckets[|c]->curr|
|00003a20| 65 6e 74 2b 2b 3b 0d 09 | 09 09 69 66 20 28 74 68 |ent++;..|..if (th|
|00003a30| 65 42 75 63 6b 65 74 73 | 5b 63 5d 2d 3e 63 75 72 |eBuckets|[c]->cur|
|00003a40| 72 65 6e 74 20 3e 3d 20 | 6b 4e 75 6d 45 6c 65 6d |rent >= |kNumElem|
|00003a50| 65 6e 74 73 29 0d 09 09 | 09 7b 0d 09 09 09 09 74 |ents)...|.{.....t|
|00003a60| 68 65 42 75 63 6b 65 74 | 73 5b 63 5d 2d 3e 6e 75 |heBucket|s[c]->nu|
|00003a70| 6d 49 74 65 6d 73 2b 2b | 3b 0d 09 09 09 09 74 68 |mItems++|;.....th|
|00003a80| 65 42 75 63 6b 65 74 73 | 5b 63 5d 2d 3e 63 75 72 |eBuckets|[c]->cur|
|00003a90| 72 65 6e 74 20 3d 20 30 | 3b 0d 09 09 09 7d 0d 09 |rent = 0|;....}..|
|00003aa0| 09 7d 0d 09 09 43 6f 70 | 79 42 75 63 6b 65 74 73 |.}...Cop|yBuckets|
|00003ab0| 28 74 68 65 41 72 72 61 | 79 29 3b 0d 09 7d 0d 09 |(theArra|y);..}..|
|00003ac0| 43 6c 65 61 72 42 75 63 | 6b 65 74 73 28 29 3b 0d |ClearBuc|kets();.|
|00003ad0| 09 77 61 73 74 65 20 3d | 20 6d 65 6d 20 2d 20 46 |.waste =| mem - F|
|00003ae0| 72 65 65 4d 65 6d 28 29 | 3b 0d 7d 0d 0d 0d 0d 2b |reeMem()|;.}....+|
|00003af0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003b30| 2d 2b 0d 7c 43 68 72 69 | 73 20 52 65 69 64 20 20 |-+.|Chri|s Reid |
|00003b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b50| 20 20 20 20 20 20 20 20 | 20 20 65 2d 6d 61 69 6c | | e-mail|
|00003b60| 3a 20 63 72 40 63 73 2e | 73 74 72 61 74 68 2e 61 |: cr@cs.|strath.a|
|00003b70| 63 2e 75 6b 20 7c 0d 7c | 44 65 70 74 2e 20 43 6f |c.uk |.||Dept. Co|
|00003b80| 6d 70 75 74 65 72 20 53 | 63 69 65 6e 63 65 2c 20 |mputer S|cience, |
|00003b90| 53 74 72 61 74 68 63 6c | 79 64 65 20 55 6e 69 76 |Strathcl|yde Univ|
|00003ba0| 65 72 73 69 74 79 2c 20 | 47 6c 61 73 67 6f 77 2c |ersity, |Glasgow,|
|00003bb0| 20 53 63 6f 74 6c 61 6e | 64 7c 0d 2b 2d 2d 2d 2d | Scotlan|d|.+----|
|00003bc0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003bd0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003be0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003bf0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2b 0d 0d |--------|-----+..|
|00003c00| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00003c10| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|00003c20| 6f 6d 20 70 63 61 73 74 | 69 6e 65 40 6a 61 6b 65 |om pcast|ine@jake|
|00003c30| 2e 70 72 7a 2e 74 75 2d | 62 65 72 6c 69 6e 2e 64 |.prz.tu-|berlin.d|
|00003c40| 65 20 28 50 65 74 65 72 | 20 43 61 73 74 69 6e 65 |e (Peter| Castine|
|00003c50| 29 0d 44 61 74 65 3a 20 | 4d 6f 6e 2c 20 36 20 4a |).Date: |Mon, 6 J|
|00003c60| 75 6e 20 31 39 39 34 20 | 31 34 3a 34 32 3a 33 31 |un 1994 |14:42:31|
|00003c70| 20 47 4d 54 0d 4f 72 67 | 61 6e 69 7a 61 74 69 6f | GMT.Org|anizatio|
|00003c80| 6e 3a 20 50 52 5a 20 54 | 55 2d 42 65 72 6c 69 6e |n: PRZ T|U-Berlin|
|00003c90| 0d 0d 63 72 40 63 73 2e | 73 74 72 61 74 68 2e 61 |..cr@cs.|strath.a|
|00003ca0| 63 2e 75 6b 20 28 43 68 | 72 69 73 20 52 65 69 64 |c.uk (Ch|ris Reid|
|00003cb0| 29 20 77 72 69 74 65 73 | 3a 0d 3e 0d 3e 48 69 20 |) writes|:.>.>Hi |
|00003cc0| 65 76 65 72 79 62 6f 64 | 79 2c 0d 3e 0d 3e 49 20 |everybod|y,.>.>I |
|00003cd0| 68 61 76 65 20 77 72 69 | 74 74 65 6e 20 73 6f 6d |have wri|tten som|
|00003ce0| 65 20 63 6f 64 65 20 74 | 68 61 74 20 69 6d 70 6c |e code t|hat impl|
|00003cf0| 65 6d 65 6e 74 73 20 52 | 61 64 69 78 20 53 6f 72 |ements R|adix Sor|
|00003d00| 74 20 28 69 74 20 73 6f | 72 74 73 0d 3e 61 6e 20 |t (it so|rts.>an |
|00003d10| 61 72 72 61 79 20 6f 66 | 20 6c 6f 6e 67 73 20 69 |array of| longs i|
|00003d20| 6e 20 6c 69 6e 65 61 72 | 20 74 69 6d 65 29 2e 20 |n linear| time). |
|00003d30| 49 74 20 73 65 65 6d 73 | 20 74 6f 20 77 6f 72 6b |It seems| to work|
|00003d40| 20 77 65 6c 6c 20 65 6e | 6f 75 67 68 2c 0d 3e 62 | well en|ough,.>b|
|00003d50| 75 74 20 6f 6e 65 20 74 | 68 69 6e 67 20 69 73 20 |ut one t|hing is |
|00003d60| 72 65 61 6c 6c 79 20 73 | 74 72 61 6e 67 65 3a 20 |really s|trange: |
|00003d70| 77 68 65 6e 20 49 20 72 | 65 70 6c 61 63 65 20 74 |when I r|eplace t|
|00003d80| 68 65 20 4e 65 77 50 74 | 72 28 29 0d 3e 63 61 6c |he NewPt|r().>cal|
|00003d90| 6c 73 20 77 69 74 68 20 | 63 61 6c 6c 73 20 74 6f |ls with |calls to|
|00003da0| 20 6d 61 6c 6c 6f 63 28 | 29 2c 20 74 68 65 20 63 | malloc(|), the c|
|00003db0| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 66 72 65 |orrespon|ding fre|
|00003dc0| 65 28 29 20 64 6f 65 73 | 6e 27 74 20 73 65 65 6d |e() does|n't seem|
|00003dd0| 0d 3e 74 6f 20 77 6f 72 | 6b 2e 20 48 65 72 65 27 |.>to wor|k. Here'|
|00003de0| 73 20 72 6f 75 67 68 6c | 79 20 77 68 61 74 20 68 |s roughl|y what h|
|00003df0| 61 70 70 65 6e 73 3a 0d | 3e 0d 5b 73 74 75 66 66 |appens:.|>.[stuff|
|00003e00| 20 64 65 6c 65 74 65 64 | 5d 0d 0d 57 65 6c 6c 2c | deleted|]..Well,|
|00003e10| 20 61 73 20 49 20 72 65 | 6d 65 6d 62 65 72 2c 20 | as I re|member, |
|00003e20| 6d 61 6c 6c 6f 63 28 29 | 20 63 61 6c 6c 73 20 5f |malloc()| calls _|
|00003e30| 4e 65 77 50 74 72 2c 20 | 62 75 74 20 66 72 65 65 |NewPtr, |but free|
|00003e40| 28 29 20 28 61 74 20 6c | 65 61 73 74 0d 69 6e 20 |() (at l|east.in |
|00003e50| 74 68 65 20 54 48 49 4e | 4b 20 43 20 69 6d 70 6c |the THIN|K C impl|
|00003e60| 65 6d 65 6e 74 61 74 69 | 6f 6e 29 20 64 6f 65 73 |ementati|on) does|
|00003e70| 20 6e 6f 74 20 28 6e 65 | 63 65 73 73 61 72 69 6c | not (ne|cessaril|
|00003e80| 79 29 20 63 61 6c 6c 20 | 5f 44 69 73 70 6f 73 50 |y) call |_DisposP|
|00003e90| 74 72 2e 0d 54 68 65 20 | 6d 61 6c 6c 6f 63 2f 66 |tr..The |malloc/f|
|00003ea0| 72 65 65 20 69 6d 70 6c | 65 6d 65 6e 74 61 74 69 |ree impl|ementati|
|00003eb0| 6f 6e 20 64 6f 65 73 20 | 73 6f 6d 65 20 6f 66 20 |on does |some of |
|00003ec0| 69 74 73 20 6f 77 6e 20 | 73 74 6f 72 65 20 6d 61 |its own |store ma|
|00003ed0| 6e 61 67 65 6d 65 6e 74 | 2e 0d 53 6f 2c 20 77 68 |nagement|..So, wh|
|00003ee0| 61 74 20 79 6f 75 27 72 | 65 20 73 65 65 69 6e 67 |at you'r|e seeing|
|00003ef0| 20 69 73 20 6e 6f 74 20 | 28 61 68 65 6d 2c 20 6e | is not |(ahem, n|
|00003f00| 65 63 65 73 73 61 72 69 | 6c 79 29 20 61 20 6d 65 |ecessari|ly) a me|
|00003f10| 6d 6f 72 79 20 6c 65 61 | 6b 2e 0d 43 68 65 63 6b |mory lea|k..Check|
|00003f20| 20 74 68 65 20 73 6f 75 | 72 63 65 73 20 6f 66 20 | the sou|rces of |
|00003f30| 6d 61 6c 6c 6f 63 28 29 | 20 61 6e 64 20 66 72 65 |malloc()| and fre|
|00003f40| 65 28 29 20 66 6f 72 20 | 64 65 74 61 69 6c 73 2e |e() for |details.|
|00003f50| 0d 0d 42 54 57 2c 20 49 | 27 76 65 20 73 65 65 6e |..BTW, I|'ve seen|
|00003f60| 20 73 6f 6d 65 20 63 6f | 64 65 20 74 68 61 74 20 | some co|de that |
|00003f70| 63 68 65 63 6b 73 20 74 | 68 65 20 65 6e 64 69 61 |checks t|he endia|
|00003f80| 6e 2d 6e 65 73 73 20 6f | 66 20 74 68 65 20 6d 61 |n-ness o|f the ma|
|00003f90| 63 68 69 6e 65 0d 61 74 | 20 72 75 6e 74 69 6d 65 |chine.at| runtime|
|00003fa0| 2e 20 54 68 69 73 20 6d | 69 67 68 74 20 62 65 20 |. This m|ight be |
|00003fb0| 61 20 62 65 74 74 65 72 | 20 69 64 65 61 20 74 68 |a better| idea th|
|00003fc0| 61 6e 20 64 65 70 65 6e | 64 69 6e 67 20 75 70 6f |an depen|ding upo|
|00003fd0| 6e 20 4d 41 43 0d 6f 72 | 20 50 43 20 62 65 69 6e |n MAC.or| PC bein|
|00003fe0| 67 20 23 64 65 66 69 6e | 65 64 2e 20 54 68 65 20 |g #defin|ed. The |
|00003ff0| 74 72 69 63 6b 20 69 73 | 20 74 6f 20 73 74 6f 72 |trick is| to stor|
|00004000| 65 20 61 6e 20 61 72 62 | 69 74 72 61 72 79 20 76 |e an arb|itrary v|
|00004010| 61 6c 75 65 0d 28 6c 69 | 6b 65 20 30 78 31 32 33 |alue.(li|ke 0x123|
|00004020| 34 29 20 69 6e 74 6f 20 | 61 20 73 68 6f 72 74 2c |4) into |a short,|
|00004030| 20 61 6e 64 20 6c 6f 6f | 6b 69 6e 67 20 61 74 20 | and loo|king at |
|00004040| 74 68 65 20 66 69 72 73 | 74 20 62 79 74 65 20 28 |the firs|t byte (|
|00004050| 62 79 20 0d 74 79 70 65 | 63 61 73 74 69 6e 67 20 |by .type|casting |
|00004060| 74 68 65 20 61 64 64 72 | 65 73 73 20 6f 66 20 74 |the addr|ess of t|
|00004070| 68 65 20 76 61 72 69 61 | 62 6c 65 20 74 6f 20 61 |he varia|ble to a|
|00004080| 20 63 68 61 72 2a 29 2e | 20 0d 4a 75 73 74 20 61 | char*).| .Just a|
|00004090| 20 73 75 67 67 65 73 74 | 69 6f 6e 2e 0d 0d 43 68 | suggest|ion...Ch|
|000040a0| 65 65 72 73 2c 0d 2d 2d | 20 0d 50 65 74 65 72 20 |eers,.--| .Peter |
|000040b0| 43 61 73 74 69 6e 65 20 | 20 20 20 20 20 20 20 20 |Castine | |
|000040c0| 20 20 20 20 20 7c 20 44 | 72 2e 20 57 68 6f 20 71 | | D|r. Who q|
|000040d0| 75 6f 74 65 20 64 75 20 | 6a 6f 75 72 3a 0d 70 63 |uote du |jour:.pc|
|000040e0| 61 73 74 69 6e 65 40 70 | 72 7a 2e 74 75 2d 62 65 |astine@p|rz.tu-be|
|000040f0| 72 6c 69 6e 2e 64 65 20 | 20 7c 20 20 20 20 20 48 |rlin.de | | H|
|00004100| 61 76 65 20 79 6f 75 20 | 6e 6f 74 69 63 65 64 20 |ave you |noticed |
|00004110| 74 68 65 20 77 61 79 20 | 70 65 6f 70 6c 65 27 73 |the way |people's|
|00004120| 0d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |.=======|========|
|00004130| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 7c 20 69 6e |========|====| in|
|00004140| 74 65 6c 6c 69 67 65 6e | 63 65 20 63 61 70 61 62 |telligen|ce capab|
|00004150| 69 6c 69 74 69 65 73 20 | 64 65 63 6c 69 6e 65 20 |ilities |decline |
|00004160| 73 68 61 72 70 6c 79 0d | 20 60 60 48 61 76 65 20 |sharply.| ``Have |
|00004170| 4d 61 63 2c 20 77 69 6c | 6c 20 74 72 61 76 65 6c |Mac, wil|l travel|
|00004180| 27 27 20 7c 20 74 68 65 | 20 6d 69 6e 75 74 65 20 |'' | the| minute |
|00004190| 74 68 65 79 20 73 74 61 | 72 74 20 77 61 76 69 6e |they sta|rt wavin|
|000041a0| 67 20 67 75 6e 73 20 61 | 72 6f 75 6e 64 3f 0d 0d |g guns a|round?..|
|000041b0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|000041c0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 0d 0d 3e 46 72 |++++++++|+++..>Fr|
|000041d0| 6f 6d 20 69 73 69 73 40 | 6e 65 74 63 6f 6d 2e 63 |om isis@|netcom.c|
|000041e0| 6f 6d 20 28 4d 69 6b 65 | 20 43 6f 68 65 6e 29 0d |om (Mike| Cohen).|
|000041f0| 44 61 74 65 3a 20 4d 6f | 6e 2c 20 36 20 4a 75 6e |Date: Mo|n, 6 Jun|
|00004200| 20 31 39 39 34 20 31 37 | 3a 30 35 3a 34 30 20 47 | 1994 17|:05:40 G|
|00004210| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00004220| 20 49 53 49 53 20 49 6e | 74 65 72 6e 61 74 69 6f | ISIS In|ternatio|
|00004230| 6e 61 6c 0d 0d 63 72 40 | 63 73 2e 73 74 72 61 74 |nal..cr@|cs.strat|
|00004240| 68 2e 61 63 2e 75 6b 20 | 28 43 68 72 69 73 20 52 |h.ac.uk |(Chris R|
|00004250| 65 69 64 29 20 77 72 69 | 74 65 73 3a 0d 0d 3c 73 |eid) wri|tes:..<s|
|00004260| 6e 69 70 3e 0d 0d 3e 2f | 2f 20 52 61 64 69 78 53 |nip>..>/|/ RadixS|
|00004270| 6f 72 74 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 20 |ort impl|emented |
|00004280| 75 73 69 6e 67 20 6d 61 | 6c 6c 6f 63 28 29 20 61 |using ma|lloc() a|
|00004290| 6e 64 20 66 72 65 65 28 | 29 0d 0d 3e 6d 65 6d 20 |nd free(|)..>mem |
|000042a0| 3d 20 46 72 65 65 4d 65 | 6d 28 29 3b 09 2f 2f 20 |= FreeMe|m();.// |
|000042b0| 57 65 27 76 65 20 67 6f | 74 20 61 6d 6f 75 6e 74 |We've go|t amount|
|000042c0| 20 27 6d 65 6d 27 20 62 | 79 74 65 73 20 69 6e 20 | 'mem' b|ytes in |
|000042d0| 74 68 65 20 68 65 61 70 | 0d 3e 52 61 64 69 78 53 |the heap|.>RadixS|
|000042e0| 6f 72 74 28 73 6f 6d 65 | 41 72 72 61 79 2c 20 6e |ort(some|Array, n|
|000042f0| 75 6d 49 74 65 6d 73 29 | 3b 09 2f 2f 20 44 6f 20 |umItems)|;.// Do |
|00004300| 74 68 65 20 73 6f 72 74 | 69 6e 67 0d 3e 77 61 73 |the sort|ing.>was|
|00004310| 74 65 20 3d 20 6d 65 6d | 20 2d 20 46 72 65 65 4d |te = mem| - FreeM|
|00004320| 65 6d 28 29 3b 09 2f 2f | 20 49 73 20 74 68 65 72 |em();.//| Is ther|
|00004330| 65 20 61 20 6d 65 6d 6f | 72 79 20 6c 65 61 6b 3f |e a memo|ry leak?|
|00004340| 0d 0d 3e 77 61 73 74 65 | 20 69 73 20 6e 6f 6e 2d |..>waste| is non-|
|00004350| 7a 65 72 6f 2c 20 61 20 | 76 65 72 79 20 64 69 73 |zero, a |very dis|
|00004360| 74 75 72 62 69 6e 67 20 | 66 61 63 74 2e 20 42 75 |turbing |fact. Bu|
|00004370| 74 20 69 74 20 67 65 74 | 73 20 65 76 65 6e 20 62 |t it get|s even b|
|00004380| 65 74 74 65 72 2c 0d 3e | 62 65 63 61 75 73 65 20 |etter,.>|because |
|00004390| 6f 6e 20 63 6f 6e 73 65 | 63 75 74 69 76 65 20 63 |on conse|cutive c|
|000043a0| 61 6c 6c 73 2c 20 77 61 | 73 74 65 20 49 53 20 7a |alls, wa|ste IS z|
|000043b0| 65 72 6f 2e 20 49 74 20 | 6c 6f 6f 6b 73 20 61 73 |ero. It |looks as|
|000043c0| 20 69 66 0d 3e 6d 61 6c | 6c 6f 63 28 29 20 72 65 | if.>mal|loc() re|
|000043d0| 6d 65 62 65 72 73 20 77 | 68 61 74 20 69 74 27 73 |mebers w|hat it's|
|000043e0| 20 64 6f 6e 65 20 62 65 | 66 6f 72 65 2e 20 42 79 | done be|fore. By|
|000043f0| 20 74 68 65 20 77 61 79 | 2c 20 49 20 6e 65 65 64 | the way|, I need|
|00004400| 20 74 6f 0d 3e 75 73 65 | 20 6d 61 6c 6c 6f 63 28 | to.>use| malloc(|
|00004410| 29 20 62 65 63 61 75 73 | 65 20 74 68 65 20 63 6f |) becaus|e the co|
|00004420| 64 65 20 68 61 73 20 74 | 6f 20 62 65 20 28 73 6f |de has t|o be (so|
|00004430| 72 74 20 6f 66 29 20 70 | 6c 61 74 66 6f 72 6d 20 |rt of) p|latform |
|00004440| 69 6e 64 65 70 65 6e 64 | 65 6e 74 2e 0d 0d 49 6e |independ|ent...In|
|00004450| 20 6d 6f 73 74 20 69 6d | 70 6c 65 6d 65 6e 74 61 | most im|plementa|
|00004460| 74 69 6f 6e 73 20 6f 66 | 20 6d 61 6c 6c 6f 63 2f |tions of| malloc/|
|00004470| 66 72 65 65 2c 20 72 61 | 74 68 65 72 20 74 68 61 |free, ra|ther tha|
|00004480| 6e 20 73 69 6d 70 6c 79 | 20 63 61 6c 6c 69 6e 67 |n simply| calling|
|00004490| 20 4e 65 77 50 74 72 20 | 26 0d 44 69 73 70 6f 73 | NewPtr |&.Dispos|
|000044a0| 65 50 74 72 20 64 69 72 | 65 63 74 6c 79 2c 20 74 |ePtr dir|ectly, t|
|000044b0| 68 65 79 20 77 69 6c 6c | 20 61 6c 6c 6f 63 61 74 |hey will| allocat|
|000044c0| 65 20 61 20 6c 61 72 67 | 65 72 20 70 6f 6f 6c 20 |e a larg|er pool |
|000044d0| 63 61 6c 6c 69 6e 67 20 | 4e 65 77 50 74 72 20 61 |calling |NewPtr a|
|000044e0| 73 0d 6e 65 63 65 73 73 | 61 72 79 20 61 6e 64 20 |s.necess|ary and |
|000044f0| 74 68 65 6e 20 6d 61 6e | 61 67 65 20 74 68 65 20 |then man|age the |
|00004500| 73 70 61 63 65 20 69 6e | 20 74 68 61 74 20 70 6f |space in| that po|
|00004510| 6f 6c 2e 20 49 6e 20 6d | 6f 73 74 20 63 61 73 65 |ol. In m|ost case|
|00004520| 73 2c 20 74 68 69 73 20 | 70 6f 6f 6c 0d 73 74 6f |s, this |pool.sto|
|00004530| 72 61 67 65 20 77 6f 6e | 27 74 20 62 65 20 72 65 |rage won|'t be re|
|00004540| 74 75 72 6e 65 64 20 74 | 6f 20 74 68 65 20 6d 61 |turned t|o the ma|
|00004550| 63 20 6d 65 6d 6f 72 79 | 20 6d 61 6e 61 67 65 72 |c memory| manager|
|00004560| 2c 20 62 75 74 20 77 69 | 6c 6c 20 72 65 6d 61 69 |, but wi|ll remai|
|00004570| 6e 20 61 76 61 69 6c 61 | 62 6c 65 0d 66 6f 72 20 |n availa|ble.for |
|00004580| 66 75 74 75 72 65 20 6d | 61 6c 6c 6f 63 28 29 20 |future m|alloc() |
|00004590| 63 61 6c 6c 73 2e 20 54 | 68 65 72 65 66 6f 72 65 |calls. T|herefore|
|000045a0| 2c 20 46 72 65 65 4d 65 | 6d 28 29 20 77 69 6c 6c |, FreeMe|m() will|
|000045b0| 20 72 65 70 6f 72 74 20 | 74 68 61 74 20 73 74 6f | report |that sto|
|000045c0| 72 61 67 65 20 77 61 73 | 0d 6c 6f 73 74 2e 0d 2d |rage was|.lost..-|
|000045d0| 2d 20 0d 4d 69 6b 65 20 | 43 6f 68 65 6e 20 2d 20 |- .Mike |Cohen - |
|000045e0| 69 73 69 73 40 6e 65 74 | 63 6f 6d 2e 63 6f 6d 0d |isis@net|com.com.|
|000045f0| 4e 65 77 74 6f 6e 4d 61 | 69 6c 2c 20 65 57 6f 72 |NewtonMa|il, eWor|
|00004600| 6c 64 3a 20 4d 69 6b 65 | 43 20 2f 20 41 4c 69 6e |ld: Mike|C / ALin|
|00004610| 6b 3a 20 44 36 37 33 34 | 20 2f 20 41 4f 4c 3a 20 |k: D6734| / AOL: |
|00004620| 4d 69 6b 65 43 32 30 0d | 48 6f 6d 65 20 50 61 67 |MikeC20.|Home Pag|
|00004630| 65 3a 20 66 69 6c 65 3a | 2f 2f 66 74 70 2e 6e 65 |e: file:|//ftp.ne|
|00004640| 74 63 6f 6d 2e 63 6f 6d | 2f 70 75 62 2f 69 73 69 |tcom.com|/pub/isi|
|00004650| 73 2f 68 6f 6d 65 2e 68 | 74 6d 6c 0d 0d 2b 2b 2b |s/home.h|tml..+++|
|00004660| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004670| 2b 2b 2b 2b 2b 2b 2b 2b | 0d 0d 3e 46 72 6f 6d 20 |++++++++|..>From |
|00004680| 4a 65 6e 73 20 41 6c 66 | 6b 65 20 3c 6a 65 6e 73 |Jens Alf|ke <jens|
|00004690| 5f 61 6c 66 6b 65 40 70 | 6f 77 65 72 74 61 6c 6b |_alfke@p|owertalk|
|000046a0| 2e 61 70 70 6c 65 2e 63 | 6f 6d 3e 0d 44 61 74 65 |.apple.c|om>.Date|
|000046b0| 3a 20 4d 6f 6e 2c 20 36 | 20 4a 75 6e 20 31 39 39 |: Mon, 6| Jun 199|
|000046c0| 34 20 32 31 3a 31 31 3a | 32 32 20 47 4d 54 0d 4f |4 21:11:|22 GMT.O|
|000046d0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 41 70 70 |rganizat|ion: App|
|000046e0| 6c 65 20 43 6f 6d 70 75 | 74 65 72 0d 0d 43 68 72 |le Compu|ter..Chr|
|000046f0| 69 73 20 52 65 69 64 2c | 20 63 72 40 63 73 2e 73 |is Reid,| cr@cs.s|
|00004700| 74 72 61 74 68 2e 61 63 | 2e 75 6b 20 77 72 69 74 |trath.ac|.uk writ|
|00004710| 65 73 3a 0d 3e 20 77 61 | 73 74 65 20 69 73 20 6e |es:.> wa|ste is n|
|00004720| 6f 6e 2d 7a 65 72 6f 2c | 20 61 20 76 65 72 79 20 |on-zero,| a very |
|00004730| 64 69 73 74 75 72 62 69 | 6e 67 20 66 61 63 74 2e |disturbi|ng fact.|
|00004740| 20 42 75 74 20 69 74 20 | 67 65 74 73 20 65 76 65 | But it |gets eve|
|00004750| 6e 20 62 65 74 74 65 72 | 2c 0d 3e 20 62 65 63 61 |n better|,.> beca|
|00004760| 75 73 65 20 6f 6e 20 63 | 6f 6e 73 65 63 75 74 69 |use on c|onsecuti|
|00004770| 76 65 20 63 61 6c 6c 73 | 2c 20 77 61 73 74 65 20 |ve calls|, waste |
|00004780| 49 53 20 7a 65 72 6f 2e | 20 49 74 20 6c 6f 6f 6b |IS zero.| It look|
|00004790| 73 20 61 73 20 69 66 0d | 3e 20 6d 61 6c 6c 6f 63 |s as if.|> malloc|
|000047a0| 28 29 20 72 65 6d 65 62 | 65 72 73 20 77 68 61 74 |() remeb|ers what|
|000047b0| 20 69 74 27 73 20 64 6f | 6e 65 20 62 65 66 6f 72 | it's do|ne befor|
|000047c0| 65 2e 20 42 79 20 74 68 | 65 20 77 61 79 2c 20 49 |e. By th|e way, I|
|000047d0| 20 6e 65 65 64 20 74 6f | 0d 3e 20 75 73 65 20 6d | need to|.> use m|
|000047e0| 61 6c 6c 6f 63 28 29 20 | 62 65 63 61 75 73 65 20 |alloc() |because |
|000047f0| 74 68 65 20 63 6f 64 65 | 20 68 61 73 20 74 6f 20 |the code| has to |
|00004800| 62 65 20 28 73 6f 72 74 | 20 6f 66 29 20 70 6c 61 |be (sort| of) pla|
|00004810| 74 66 6f 72 6d 20 69 6e | 64 65 70 65 6e 64 65 6e |tform in|dependen|
|00004820| 74 2e 0d 0d 54 68 69 73 | 20 69 73 20 61 20 76 65 |t...This| is a ve|
|00004830| 72 79 20 46 72 65 71 75 | 65 6e 74 6c 79 20 41 73 |ry Frequ|ently As|
|00004840| 6b 65 64 20 51 75 65 73 | 74 69 6f 6e 2e 20 6d 61 |ked Ques|tion. ma|
|00004850| 6c 6c 6f 63 20 61 6e 64 | 20 66 72 65 65 20 61 73 |lloc and| free as|
|00004860| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 62 79 0d | impleme|nted by.|
|00004870| 74 68 65 20 41 4e 53 49 | 20 6c 69 62 72 61 72 79 |the ANSI| library|
|00004880| 20 28 6f 6e 20 61 6c 6c | 20 6b 6e 6f 77 20 4d 61 | (on all| know Ma|
|00004890| 63 20 64 65 76 65 6c 6f | 70 6d 65 6e 74 20 73 79 |c develo|pment sy|
|000048a0| 73 74 65 6d 73 29 20 67 | 72 61 62 20 6c 61 72 67 |stems) g|rab larg|
|000048b0| 65 20 62 6c 6f 63 6b 73 | 20 6f 66 0d 6d 65 6d 6f |e blocks| of.memo|
|000048c0| 72 79 20 76 69 61 20 4e | 65 77 50 74 72 2c 20 74 |ry via N|ewPtr, t|
|000048d0| 68 65 6e 20 73 75 62 61 | 6c 6c 6f 63 61 74 65 20 |hen suba|llocate |
|000048e0| 74 68 6f 73 65 20 62 6c | 6f 63 6b 73 20 66 6f 72 |those bl|ocks for|
|000048f0| 20 73 75 63 63 65 73 73 | 69 76 65 20 6d 61 6c 6c | success|ive mall|
|00004900| 6f 63 73 2e 0d 54 68 65 | 73 65 20 6c 61 72 67 65 |ocs..The|se large|
|00004910| 20 62 6c 6f 63 6b 73 20 | 64 6f 6e 27 74 20 67 65 | blocks |don't ge|
|00004920| 74 20 72 65 74 75 72 6e | 65 64 20 2d 2d 20 69 74 |t return|ed -- it|
|00004930| 20 77 6f 75 6c 64 20 62 | 65 20 64 69 66 66 69 63 | would b|e diffic|
|00004940| 75 6c 74 20 74 6f 20 66 | 69 67 75 72 65 20 6f 75 |ult to f|igure ou|
|00004950| 74 0d 77 68 65 6e 20 74 | 6f 20 72 65 74 75 72 6e |t.when t|o return|
|00004960| 20 74 68 65 6d 2e 20 42 | 75 74 20 74 68 65 20 6d | them. B|ut the m|
|00004970| 65 6d 6f 72 79 20 69 6e | 20 74 68 65 6d 20 64 6f |emory in| them do|
|00004980| 65 73 20 67 65 74 20 72 | 65 2d 75 73 65 64 20 62 |es get r|e-used b|
|00004990| 79 20 6d 61 6c 6c 6f 63 | 20 69 66 20 79 6f 75 0d |y malloc| if you.|
|000049a0| 66 72 65 65 20 69 74 2e | 0d 0d 54 68 69 6e 6b 20 |free it.|..Think |
|000049b0| 6f 66 20 69 74 20 61 73 | 20 69 66 20 6d 61 6c 6c |of it as| if mall|
|000049c0| 6f 63 20 61 6e 64 20 66 | 72 65 65 20 63 72 65 61 |oc and f|ree crea|
|000049d0| 74 65 20 61 20 6e 65 77 | 20 68 65 61 70 20 66 72 |te a new| heap fr|
|000049e0| 6f 6d 20 77 68 69 63 68 | 20 74 6f 20 61 6c 6c 6f |om which| to allo|
|000049f0| 63 61 74 65 0d 6d 65 6d | 6f 72 79 2e 0d 0d 2d 2d |cate.mem|ory...--|
|00004a00| 4a 65 6e 73 20 41 6c 66 | 6b 65 0d 20 20 6a 65 6e |Jens Alf|ke. jen|
|00004a10| 73 5f 61 6c 66 6b 65 40 | 70 6f 77 65 72 74 61 6c |s_alfke@|powertal|
|00004a20| 6b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 52 |k | R|
|00004a30| 65 62 65 6c 20 67 69 72 | 6c 2c 20 72 65 62 65 6c |ebel gir|l, rebel|
|00004a40| 20 67 69 72 6c 2c 0d 20 | 20 20 20 20 20 20 20 20 | girl,. | |
|00004a50| 20 20 20 2e 61 70 70 6c | 65 2e 63 6f 6d 20 20 20 | .appl|e.com |
|00004a60| 20 20 20 20 20 20 20 20 | 20 20 20 52 65 62 65 6c | | Rebel|
|00004a70| 20 67 69 72 6c 20 79 6f | 75 20 61 72 65 20 74 68 | girl yo|u are th|
|00004a80| 65 20 71 75 65 65 6e 20 | 6f 66 20 6d 79 20 77 6f |e queen |of my wo|
|00004a90| 72 6c 64 0d 0d 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |rld..+++|++++++++|
|00004aa0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00004ab0| 0d 0d 3e 46 72 6f 6d 20 | 68 61 6c 6c 5f 6a 40 73 |..>From |hall_j@s|
|00004ac0| 61 74 2e 6d 6f 74 2e 63 | 6f 6d 20 28 4a 6f 73 65 |at.mot.c|om (Jose|
|00004ad0| 70 68 20 48 61 6c 6c 29 | 0d 44 61 74 65 3a 20 4d |ph Hall)|.Date: M|
|00004ae0| 6f 6e 2c 20 36 20 4a 75 | 6e 20 31 39 39 34 20 31 |on, 6 Ju|n 1994 1|
|00004af0| 38 3a 34 38 3a 34 35 20 | 47 4d 54 0d 4f 72 67 61 |8:48:45 |GMT.Orga|
|00004b00| 6e 69 7a 61 74 69 6f 6e | 3a 20 4d 6f 74 6f 72 6f |nization|: Motoro|
|00004b10| 6c 61 20 49 6e 63 2e 2c | 20 53 61 74 65 6c 6c 69 |la Inc.,| Satelli|
|00004b20| 74 65 20 43 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |te Commu|nication|
|00004b30| 73 0d 0d 53 65 65 6d 73 | 20 69 74 20 77 61 73 20 |s..Seems| it was |
|00004b40| 63 72 40 63 73 2e 73 74 | 72 61 74 68 2e 61 63 2e |cr@cs.st|rath.ac.|
|00004b50| 75 6b 20 28 43 68 72 69 | 73 20 52 65 69 64 29 20 |uk (Chri|s Reid) |
|00004b60| 77 68 6f 20 73 61 69 64 | 3a 0d 3e 48 69 20 65 76 |who said|:.>Hi ev|
|00004b70| 65 72 79 62 6f 64 79 2c | 0d 3e 0d 3e 49 20 68 61 |erybody,|.>.>I ha|
|00004b80| 76 65 20 77 72 69 74 74 | 65 6e 20 73 6f 6d 65 20 |ve writt|en some |
|00004b90| 63 6f 64 65 20 74 68 61 | 74 20 69 6d 70 6c 65 6d |code tha|t implem|
|00004ba0| 65 6e 74 73 20 52 61 64 | 69 78 20 53 6f 72 74 20 |ents Rad|ix Sort |
|00004bb0| 28 69 74 20 73 6f 72 74 | 73 0d 3e 61 6e 20 61 72 |(it sort|s.>an ar|
|00004bc0| 72 61 79 20 6f 66 20 6c | 6f 6e 67 73 20 69 6e 20 |ray of l|ongs in |
|00004bd0| 6c 69 6e 65 61 72 20 74 | 69 6d 65 29 2e 20 49 74 |linear t|ime). It|
|00004be0| 20 73 65 65 6d 73 20 74 | 6f 20 77 6f 72 6b 20 77 | seems t|o work w|
|00004bf0| 65 6c 6c 20 65 6e 6f 75 | 67 68 2c 0d 3e 62 75 74 |ell enou|gh,.>but|
|00004c00| 20 6f 6e 65 20 74 68 69 | 6e 67 20 69 73 20 72 65 | one thi|ng is re|
|00004c10| 61 6c 6c 79 20 73 74 72 | 61 6e 67 65 3a 20 77 68 |ally str|ange: wh|
|00004c20| 65 6e 20 49 20 72 65 70 | 6c 61 63 65 20 74 68 65 |en I rep|lace the|
|00004c30| 20 4e 65 77 50 74 72 28 | 29 0d 3e 63 61 6c 6c 73 | NewPtr(|).>calls|
|00004c40| 20 77 69 74 68 20 63 61 | 6c 6c 73 20 74 6f 20 6d | with ca|lls to m|
|00004c50| 61 6c 6c 6f 63 28 29 2c | 20 74 68 65 20 63 6f 72 |alloc(),| the cor|
|00004c60| 72 65 73 70 6f 6e 64 69 | 6e 67 20 66 72 65 65 28 |respondi|ng free(|
|00004c70| 29 20 64 6f 65 73 6e 27 | 74 20 73 65 65 6d 0d 3e |) doesn'|t seem.>|
|00004c80| 74 6f 20 77 6f 72 6b 2e | 20 48 65 72 65 27 73 20 |to work.| Here's |
|00004c90| 72 6f 75 67 68 6c 79 20 | 77 68 61 74 20 68 61 70 |roughly |what hap|
|00004ca0| 70 65 6e 73 3a 0d 0d 49 | 74 20 75 73 65 64 20 74 |pens:..I|t used t|
|00004cb0| 6f 20 62 65 20 74 68 61 | 74 20 54 48 49 4e 4b 20 |o be tha|t THINK |
|00004cc0| 43 27 73 20 66 72 65 65 | 28 29 20 6a 75 73 74 20 |C's free|() just |
|00004cd0| 64 69 64 6e 27 74 20 66 | 72 65 65 20 62 6c 6f 63 |didn't f|ree bloc|
|00004ce0| 6b 73 2e 20 20 49 74 0d | 77 61 73 20 6d 65 61 6e |ks. It.|was mean|
|00004cf0| 74 20 74 6f 20 77 6f 72 | 6b 20 74 68 61 74 20 77 |t to wor|k that w|
|00004d00| 61 79 2e 20 20 49 20 64 | 6f 6e 27 74 20 72 65 63 |ay. I d|on't rec|
|00004d10| 61 6c 6c 20 77 68 65 74 | 68 65 72 20 69 74 20 64 |all whet|her it d|
|00004d20| 69 64 6e 27 74 20 66 72 | 65 65 0d 61 6e 79 20 62 |idn't fr|ee.any b|
|00004d30| 6c 6f 63 6b 73 20 6f 72 | 20 77 68 65 74 68 65 72 |locks or| whether|
|00004d40| 20 69 74 20 6f 6e 6c 79 | 20 66 72 65 65 64 20 62 | it only| freed b|
|00004d50| 6c 6f 63 6b 73 20 6c 61 | 72 67 65 72 20 74 68 61 |locks la|rger tha|
|00004d60| 6e 20 61 20 63 65 72 74 | 61 69 6e 20 73 69 7a 65 |n a cert|ain size|
|00004d70| 2e 0d 0d 4d 50 57 27 73 | 20 6d 61 6c 6c 6f 63 28 |...MPW's| malloc(|
|00004d80| 29 2c 20 6f 6e 20 74 68 | 65 20 6f 74 68 65 72 20 |), on th|e other |
|00004d90| 68 61 6e 64 2c 20 77 61 | 73 20 62 75 73 74 65 64 |hand, wa|s busted|
|00004da0| 20 61 72 6f 75 6e 64 20 | 33 2e 30 20 6f 72 20 33 | around |3.0 or 3|
|00004db0| 2e 31 2e 0d 44 6f 20 73 | 6f 6d 65 20 6d 61 6c 6c |.1..Do s|ome mall|
|00004dc0| 6f 63 2d 69 6e 67 20 61 | 6e 64 20 73 6f 6d 65 20 |oc-ing a|nd some |
|00004dd0| 66 72 65 65 2d 69 6e 67 | 20 61 6e 64 20 65 76 65 |free-ing| and eve|
|00004de0| 6e 74 75 61 6c 6c 79 20 | 69 74 20 77 6f 75 6c 64 |ntually |it would|
|00004df0| 20 63 72 61 73 68 2e 0d | 49 20 64 6f 6e 27 74 20 | crash..|I don't |
|00004e00| 6b 6e 6f 77 20 77 68 65 | 74 68 65 72 20 74 68 61 |know whe|ther tha|
|00004e10| 74 20 77 61 73 20 65 76 | 65 72 20 66 69 78 65 64 |t was ev|er fixed|
|00004e20| 2c 20 74 68 6f 75 67 68 | 20 49 20 72 65 70 6f 72 |, though| I repor|
|00004e30| 74 65 64 20 69 74 2e 0d | 0d 49 20 73 75 67 67 65 |ted it..|.I sugge|
|00004e40| 73 74 20 74 68 61 74 20 | 79 6f 75 20 75 73 65 20 |st that |you use |
|00004e50| 4e 65 77 50 74 72 28 29 | 20 6f 6e 20 74 68 65 20 |NewPtr()| on the |
|00004e60| 4d 61 63 20 74 6f 20 6f | 62 74 61 69 6e 20 6d 65 |Mac to o|btain me|
|00004e70| 6d 6f 72 79 2c 20 74 68 | 65 6e 0d 6d 61 6e 61 67 |mory, th|en.manag|
|00004e80| 65 20 69 74 20 77 69 74 | 68 20 61 20 6d 65 6d 6f |e it wit|h a memo|
|00004e90| 72 79 20 61 6c 6c 6f 63 | 61 74 6f 72 20 6f 66 20 |ry alloc|ator of |
|00004ea0| 79 6f 75 72 20 6f 77 6e | 2e 20 20 54 68 65 20 41 |your own|. The A|
|00004eb0| 68 6f 2f 48 6f 70 63 72 | 6f 66 74 2f 0d 55 6c 6c |ho/Hopcr|oft/.Ull|
|00004ec0| 6d 61 6e 20 61 6c 67 6f | 72 69 74 68 6d 73 20 62 |man algo|rithms b|
|00004ed0| 6f 6f 6b 20 68 61 73 20 | 61 20 73 65 63 74 69 6f |ook has |a sectio|
|00004ee0| 6e 20 6f 6e 20 61 6c 6c | 6f 63 61 74 6f 72 73 2c |n on all|ocators,|
|00004ef0| 20 6f 72 20 79 6f 75 20 | 63 6f 75 6c 64 0d 6a 75 | or you |could.ju|
|00004f00| 73 74 20 6d 61 6b 65 20 | 61 6c 6c 6f 63 61 74 69 |st make |allocati|
|00004f10| 6f 6e 73 20 6f 66 20 74 | 68 65 20 64 65 73 69 72 |ons of t|he desir|
|00004f20| 65 64 20 73 69 7a 65 20 | 77 69 74 68 20 4e 65 77 |ed size |with New|
|00004f30| 50 74 72 28 29 2e 20 20 | 59 6f 75 20 63 61 6e 20 |Ptr(). |You can |
|00004f40| 61 6c 77 61 79 73 0d 6f | 62 74 61 69 6e 20 61 20 |always.o|btain a |
|00004f50| 73 65 70 61 72 61 74 65 | 20 7a 6f 6e 65 20 74 6f |separate| zone to|
|00004f60| 20 77 6f 72 6b 20 77 69 | 74 68 2c 20 74 6f 6f 2c | work wi|th, too,|
|00004f70| 20 77 68 69 63 68 20 6d | 61 6b 65 73 20 69 74 20 | which m|akes it |
|00004f80| 65 61 73 79 20 74 6f 0d | 66 72 65 65 20 61 20 77 |easy to.|free a w|
|00004f90| 68 6f 6c 65 20 62 75 6e | 63 68 20 6f 66 20 73 74 |hole bun|ch of st|
|00004fa0| 75 66 66 20 65 6e 20 6d | 61 73 73 65 2e 0d 0d 2d |uff en m|asse...-|
|00004fb0| 2d 20 0d 4a 6f 73 65 70 | 68 20 4e 61 74 68 61 6e |- .Josep|h Nathan|
|00004fc0| 20 48 61 6c 6c 20 7c 20 | 4a 6f 73 65 70 68 27 73 | Hall | |Joseph's|
|00004fd0| 20 4c 61 77 20 6f 66 20 | 49 6e 74 65 72 66 61 63 | Law of |Interfac|
|00004fe0| 65 20 44 65 73 69 67 6e | 3a 20 4e 65 76 65 72 20 |e Design|: Never |
|00004ff0| 67 69 76 65 20 79 6f 75 | 72 20 75 73 65 72 73 0d |give you|r users.|
|00005000| 53 6f 66 74 77 61 72 65 | 20 41 72 63 68 69 74 65 |Software| Archite|
|00005010| 63 74 20 7c 20 61 20 63 | 68 6f 69 63 65 20 62 65 |ct | a c|hoice be|
|00005020| 74 77 65 65 6e 20 74 68 | 65 20 65 61 73 79 20 77 |tween th|e easy w|
|00005030| 61 79 20 61 6e 64 20 74 | 68 65 20 72 69 67 68 74 |ay and t|he right|
|00005040| 20 77 61 79 2e 0d 47 6f | 72 63 61 20 53 79 73 74 | way..Go|rca Syst|
|00005050| 65 6d 73 20 49 6e 63 2e | 20 7c 20 20 20 20 20 20 |ems Inc.| | |
|00005060| 20 20 20 20 20 20 20 20 | 20 20 20 6a 6f 73 65 70 | | josep|
|00005070| 68 40 6a 6f 65 62 6c 6f | 65 2e 6d 61 70 6c 65 2d |h@joeblo|e.maple-|
|00005080| 73 68 61 64 65 2e 6e 6a | 2e 75 73 20 28 68 6f 6d |shade.nj|.us (hom|
|00005090| 65 29 0d 28 6f 6e 20 61 | 73 73 69 67 6e 6d 65 6e |e).(on a|ssignmen|
|000050a0| 74 29 20 20 20 20 7c 20 | 28 36 30 32 29 20 37 33 |t) | |(602) 73|
|000050b0| 32 2d 32 35 34 39 20 28 | 77 6f 72 6b 29 20 20 4a |2-2549 (|work) J|
|000050c0| 6f 73 65 70 68 5f 48 61 | 6c 6c 2d 53 43 30 35 32 |oseph_Ha|ll-SC052|
|000050d0| 43 40 65 6d 61 69 6c 2e | 6d 6f 74 2e 63 6f 6d 0d |C@email.|mot.com.|
|000050e0| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|000050f0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|00005100| 72 6f 6d 20 4d 61 72 6b | 20 48 61 6e 72 65 6b 20 |rom Mark| Hanrek |
|00005110| 3c 68 61 6e 72 65 6b 40 | 63 74 73 2e 63 6f 6d 3e |<hanrek@|cts.com>|
|00005120| 0d 44 61 74 65 3a 20 57 | 65 64 2c 20 38 20 4a 75 |.Date: W|ed, 8 Ju|
|00005130| 6e 20 31 39 39 34 20 30 | 30 3a 35 33 3a 31 37 20 |n 1994 0|0:53:17 |
|00005140| 47 4d 54 0d 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |GMT.Orga|nization|
|00005150| 3a 20 54 68 65 20 49 6e | 66 6f 72 6d 61 74 69 6f |: The In|formatio|
|00005160| 6e 20 57 6f 72 6b 73 68 | 6f 70 0d 0d 49 74 20 73 |n Worksh|op..It s|
|00005170| 65 65 6d 73 20 74 6f 20 | 6d 65 20 74 68 61 74 20 |eems to |me that |
|00005180| 6f 6e 65 20 73 68 6f 75 | 6c 64 20 62 65 20 61 62 |one shou|ld be ab|
|00005190| 6c 65 20 74 6f 20 63 6f | 70 79 20 74 68 65 20 73 |le to co|py the s|
|000051a0| 6f 75 72 63 65 20 63 6f | 64 65 20 66 6f 72 0d 6d |ource co|de for.m|
|000051b0| 61 6c 6c 6f 63 28 29 20 | 61 6e 64 20 66 72 65 65 |alloc() |and free|
|000051c0| 28 29 20 69 6e 74 6f 20 | 74 68 65 69 72 20 70 72 |() into |their pr|
|000051d0| 6f 6a 65 63 74 2c 20 61 | 6e 64 20 74 68 65 6e 20 |oject, a|nd then |
|000051e0| 64 65 74 65 72 6d 69 6e | 65 20 68 6f 77 20 74 6f |determin|e how to|
|000051f0| 20 6d 6f 64 69 66 79 0d | 69 74 20 74 6f 20 61 63 | modify.|it to ac|
|00005200| 74 75 61 6c 6c 79 20 66 | 72 65 65 20 74 68 65 20 |tually f|ree the |
|00005210| 6d 65 6d 6f 72 79 20 74 | 68 61 74 20 77 61 73 20 |memory t|hat was |
|00005220| 6f 72 69 67 69 6e 61 6c | 6c 79 20 6d 61 6c 6c 6f |original|ly mallo|
|00005230| 63 27 64 2e 0d 0d 54 68 | 69 73 20 69 73 20 77 68 |c'd...Th|is is wh|
|00005240| 61 74 20 49 20 66 69 67 | 75 72 65 20 49 20 61 6d |at I fig|ure I am|
|00005250| 20 67 6f 69 6e 67 20 74 | 6f 20 68 61 76 65 20 74 | going t|o have t|
|00005260| 6f 20 64 6f 2c 20 62 65 | 63 61 75 73 65 20 49 20 |o do, be|cause I |
|00005270| 6a 75 73 74 20 64 69 73 | 63 6f 76 65 72 65 64 0d |just dis|covered.|
|00005280| 74 68 61 74 20 77 68 65 | 6e 20 49 20 6d 61 64 65 |that whe|n I made|
|00005290| 20 74 68 69 73 20 72 6f | 75 74 69 6e 65 20 69 6e | this ro|utine in|
|000052a0| 74 6f 20 61 20 63 6f 64 | 65 20 72 65 73 6f 75 72 |to a cod|e resour|
|000052b0| 63 65 20 28 58 43 4d 44 | 29 20 77 68 69 63 68 20 |ce (XCMD|) which |
|000052c0| 77 69 6c 6c 20 72 75 6e | 0d 77 69 74 68 69 6e 20 |will run|.within |
|000052d0| 48 79 70 65 72 43 61 72 | 64 2c 20 69 74 20 75 73 |HyperCar|d, it us|
|000052e0| 65 64 20 6d 61 6c 6c 6f | 63 2c 20 61 6e 64 20 49 |ed mallo|c, and I|
|000052f0| 20 61 62 73 6f 6c 75 74 | 65 6c 79 20 6d 75 73 74 | absolut|ely must|
|00005300| 20 72 65 74 75 72 6e 20 | 74 68 61 74 0d 6d 65 6d | return |that.mem|
|00005310| 6f 72 79 2c 20 61 6e 64 | 20 74 68 65 72 65 20 69 |ory, and| there i|
|00005320| 73 20 6e 6f 20 77 61 79 | 20 49 20 63 6f 75 6c 64 |s no way| I could|
|00005330| 20 70 6f 73 73 69 62 6c | 79 20 63 6f 6e 76 65 72 | possibl|y conver|
|00005340| 74 20 74 68 65 20 73 6f | 75 72 63 65 20 63 6f 64 |t the so|urce cod|
|00005350| 65 20 74 6f 0d 75 73 69 | 6e 67 20 4e 65 77 50 74 |e to.usi|ng NewPt|
|00005360| 72 20 77 69 74 68 6f 75 | 74 20 6f 70 65 6e 69 6e |r withou|t openin|
|00005370| 67 20 61 20 50 61 6e 64 | 6f 72 61 27 73 20 42 6f |g a Pand|ora's Bo|
|00005380| 78 2e 20 20 49 74 27 73 | 20 6a 75 73 74 20 74 6f |x. It's| just to|
|00005390| 6f 20 63 6f 6d 70 6c 65 | 78 2e 0d 0d 3c 73 69 67 |o comple|x...<sig|
|000053a0| 68 3e 0d 0d 4d 61 72 6b | 20 48 61 6e 72 65 6b 0d |h>..Mark| Hanrek.|
|000053b0| 0d 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |.+++++++|++++++++|
|000053c0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 0d 0d 3e 46 |++++++++|++++..>F|
|000053d0| 72 6f 6d 20 72 61 79 40 | 73 66 75 2e 63 61 20 28 |rom ray@|sfu.ca (|
|000053e0| 52 61 79 20 44 61 76 69 | 73 6f 6e 29 20 28 52 61 |Ray Davi|son) (Ra|
|000053f0| 79 20 44 61 76 69 73 6f | 6e 29 0d 44 61 74 65 3a |y Daviso|n).Date:|
|00005400| 20 46 72 69 2c 20 31 30 | 20 4a 75 6e 20 31 39 39 | Fri, 10| Jun 199|
|00005410| 34 20 32 32 3a 33 34 3a | 34 36 20 47 4d 54 0d 4f |4 22:34:|46 GMT.O|
|00005420| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 53 69 6d |rganizat|ion: Sim|
|00005430| 6f 6e 20 46 72 61 73 65 | 72 20 55 6e 69 76 65 72 |on Frase|r Univer|
|00005440| 73 69 74 79 0d 0d 49 6e | 20 61 72 74 69 63 6c 65 |sity..In| article|
|00005450| 20 3c 43 72 31 7a 73 75 | 2e 4b 34 47 40 63 72 61 | <Cr1zsu|.K4G@cra|
|00005460| 73 68 2e 63 74 73 2e 63 | 6f 6d 3e 2c 20 4d 61 72 |sh.cts.c|om>, Mar|
|00005470| 6b 20 48 61 6e 72 65 6b | 20 3c 68 61 6e 72 65 6b |k Hanrek| <hanrek|
|00005480| 40 63 74 73 2e 63 6f 6d | 3e 20 77 72 6f 74 65 3a |@cts.com|> wrote:|
|00005490| 0d 0d 3e 20 49 74 20 73 | 65 65 6d 73 20 74 6f 20 |..> It s|eems to |
|000054a0| 6d 65 20 74 68 61 74 20 | 6f 6e 65 20 73 68 6f 75 |me that |one shou|
|000054b0| 6c 64 20 62 65 20 61 62 | 6c 65 20 74 6f 20 63 6f |ld be ab|le to co|
|000054c0| 70 79 20 74 68 65 20 73 | 6f 75 72 63 65 20 63 6f |py the s|ource co|
|000054d0| 64 65 20 66 6f 72 0d 3e | 20 6d 61 6c 6c 6f 63 28 |de for.>| malloc(|
|000054e0| 29 20 61 6e 64 20 66 72 | 65 65 28 29 20 69 6e 74 |) and fr|ee() int|
|000054f0| 6f 20 74 68 65 69 72 20 | 70 72 6f 6a 65 63 74 2c |o their |project,|
|00005500| 20 61 6e 64 20 74 68 65 | 6e 20 64 65 74 65 72 6d | and the|n determ|
|00005510| 69 6e 65 20 68 6f 77 20 | 74 6f 20 6d 6f 64 69 66 |ine how |to modif|
|00005520| 79 0d 3e 20 69 74 20 74 | 6f 20 61 63 74 75 61 6c |y.> it t|o actual|
|00005530| 6c 79 20 66 72 65 65 20 | 74 68 65 20 6d 65 6d 6f |ly free |the memo|
|00005540| 72 79 20 74 68 61 74 20 | 77 61 73 20 6f 72 69 67 |ry that |was orig|
|00005550| 69 6e 61 6c 6c 79 20 6d | 61 6c 6c 6f 63 27 64 2e |inally m|alloc'd.|
|00005560| 0d 3e 20 0d 3e 20 54 68 | 69 73 20 69 73 20 77 68 |.> .> Th|is is wh|
|00005570| 61 74 20 49 20 66 69 67 | 75 72 65 20 49 20 61 6d |at I fig|ure I am|
|00005580| 20 67 6f 69 6e 67 20 74 | 6f 20 68 61 76 65 20 74 | going t|o have t|
|00005590| 6f 20 64 6f 2c 20 62 65 | 63 61 75 73 65 20 49 20 |o do, be|cause I |
|000055a0| 6a 75 73 74 20 64 69 73 | 63 6f 76 65 72 65 64 0d |just dis|covered.|
|000055b0| 3e 20 74 68 61 74 20 77 | 68 65 6e 20 49 20 6d 61 |> that w|hen I ma|
|000055c0| 64 65 20 74 68 69 73 20 | 72 6f 75 74 69 6e 65 20 |de this |routine |
|000055d0| 69 6e 74 6f 20 61 20 63 | 6f 64 65 20 72 65 73 6f |into a c|ode reso|
|000055e0| 75 72 63 65 20 28 58 43 | 4d 44 29 20 77 68 69 63 |urce (XC|MD) whic|
|000055f0| 68 20 77 69 6c 6c 20 72 | 75 6e 0d 3e 20 77 69 74 |h will r|un.> wit|
|00005600| 68 69 6e 20 48 79 70 65 | 72 43 61 72 64 2c 20 69 |hin Hype|rCard, i|
|00005610| 74 20 75 73 65 64 20 6d | 61 6c 6c 6f 63 2c 20 61 |t used m|alloc, a|
|00005620| 6e 64 20 49 20 61 62 73 | 6f 6c 75 74 65 6c 79 20 |nd I abs|olutely |
|00005630| 6d 75 73 74 20 72 65 74 | 75 72 6e 20 74 68 61 74 |must ret|urn that|
|00005640| 0d 3e 20 6d 65 6d 6f 72 | 79 2c 20 61 6e 64 20 74 |.> memor|y, and t|
|00005650| 68 65 72 65 20 69 73 20 | 6e 6f 20 77 61 79 20 49 |here is |no way I|
|00005660| 20 63 6f 75 6c 64 20 70 | 6f 73 73 69 62 6c 79 20 | could p|ossibly |
|00005670| 63 6f 6e 76 65 72 74 20 | 74 68 65 20 73 6f 75 72 |convert |the sour|
|00005680| 63 65 20 63 6f 64 65 20 | 74 6f 0d 3e 20 75 73 69 |ce code |to.> usi|
|00005690| 6e 67 20 4e 65 77 50 74 | 72 20 77 69 74 68 6f 75 |ng NewPt|r withou|
|000056a0| 74 20 6f 70 65 6e 69 6e | 67 20 61 20 50 61 6e 64 |t openin|g a Pand|
|000056b0| 6f 72 61 27 73 20 42 6f | 78 2e 20 20 49 74 27 73 |ora's Bo|x. It's|
|000056c0| 20 6a 75 73 74 20 74 6f | 6f 20 63 6f 6d 70 6c 65 | just to|o comple|
|000056d0| 78 2e 0d 0d 49 20 6f 6e | 63 65 20 6e 65 65 64 65 |x...I on|ce neede|
|000056e0| 64 20 74 6f 20 75 73 65 | 20 73 6f 6d 65 20 55 6e |d to use| some Un|
|000056f0| 69 78 20 63 6f 64 65 20 | 61 6e 64 20 61 6c 73 6f |ix code |and also|
|00005700| 20 64 69 64 6e 27 74 20 | 77 61 6e 74 20 69 74 20 | didn't |want it |
|00005710| 74 6f 20 75 73 65 20 6d | 61 6c 6c 6f 63 0d 61 6e |to use m|alloc.an|
|00005720| 64 20 66 72 65 65 2e 20 | 41 6c 6c 20 49 20 64 69 |d free. |All I di|
|00005730| 64 20 77 61 73 20 69 6e | 63 6c 75 64 65 20 74 68 |d was in|clude th|
|00005740| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 6e 20 74 |e follow|ing in t|
|00005750| 68 65 20 73 6f 75 72 63 | 65 3a 0d 0d 23 64 65 66 |he sourc|e:..#def|
|00005760| 69 6e 65 20 66 72 65 65 | 28 70 29 20 44 69 73 70 |ine free|(p) Disp|
|00005770| 6f 73 50 74 72 28 28 50 | 74 72 29 28 70 29 29 0d |osPtr((P|tr)(p)).|
|00005780| 23 64 65 66 69 6e 65 20 | 63 61 6c 6c 6f 63 28 73 |#define |calloc(s|
|00005790| 2c 6e 29 20 28 28 76 6f | 69 64 20 2a 29 4e 65 77 |,n) ((vo|id *)New|
|000057a0| 50 74 72 43 6c 65 61 72 | 28 73 2a 6e 29 29 0d 23 |PtrClear|(s*n)).#|
|000057b0| 64 65 66 69 6e 65 20 6d | 61 6c 6c 6f 63 28 73 29 |define m|alloc(s)|
|000057c0| 20 28 28 76 6f 69 64 20 | 2a 29 4e 65 77 50 74 72 | ((void |*)NewPtr|
|000057d0| 28 73 29 29 0d 0d 57 6f | 72 6b 65 64 20 66 69 6e |(s))..Wo|rked fin|
|000057e0| 65 20 66 6f 72 20 6d 65 | 2e 0d 0d 2d 2d 20 0d 52 |e for me|...-- .R|
|000057f0| 61 79 20 44 61 76 69 73 | 6f 6e 0d 72 61 79 40 73 |ay Davis|on.ray@s|
|00005800| 66 75 2e 63 61 0d 0d 2b | 2b 2b 2b 2b 2b 2b 2b 2b |fu.ca..+|++++++++|
|00005810| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005820| 2b 2b 0d 0d 3e 46 72 6f | 6d 20 70 63 61 73 74 69 |++..>Fro|m pcasti|
|00005830| 6e 65 40 74 75 62 70 72 | 7a 2e 70 72 7a 2e 74 75 |ne@tubpr|z.prz.tu|
|00005840| 2d 62 65 72 6c 69 6e 2e | 64 65 20 28 50 65 74 65 |-berlin.|de (Pete|
|00005850| 72 20 43 61 73 74 69 6e | 65 29 0d 44 61 74 65 3a |r Castin|e).Date:|
|00005860| 20 53 75 6e 2c 20 31 32 | 20 4a 75 6e 20 31 39 39 | Sun, 12| Jun 199|
|00005870| 34 20 31 35 3a 32 38 3a | 33 36 20 47 4d 54 0d 4f |4 15:28:|36 GMT.O|
|00005880| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 50 52 5a |rganizat|ion: PRZ|
|00005890| 20 54 55 2d 42 65 72 6c | 69 6e 0d 0d 72 61 79 40 | TU-Berl|in..ray@|
|000058a0| 73 66 75 2e 63 61 20 28 | 52 61 79 20 44 61 76 69 |sfu.ca (|Ray Davi|
|000058b0| 73 6f 6e 29 20 28 52 61 | 79 20 44 61 76 69 73 6f |son) (Ra|y Daviso|
|000058c0| 6e 29 20 77 72 69 74 65 | 73 3a 0d 3e 0d 3e 49 20 |n) write|s:.>.>I |
|000058d0| 6f 6e 63 65 20 6e 65 65 | 64 65 64 20 74 6f 20 75 |once nee|ded to u|
|000058e0| 73 65 20 73 6f 6d 65 20 | 55 6e 69 78 20 63 6f 64 |se some |Unix cod|
|000058f0| 65 20 61 6e 64 20 61 6c | 73 6f 20 64 69 64 6e 27 |e and al|so didn'|
|00005900| 74 20 77 61 6e 74 20 69 | 74 20 74 6f 20 75 73 65 |t want i|t to use|
|00005910| 20 6d 61 6c 6c 6f 63 0d | 3e 61 6e 64 20 66 72 65 | malloc.|>and fre|
|00005920| 65 2e 20 41 6c 6c 20 49 | 20 64 69 64 20 77 61 73 |e. All I| did was|
|00005930| 20 69 6e 63 6c 75 64 65 | 20 74 68 65 20 66 6f 6c | include| the fol|
|00005940| 6c 6f 77 69 6e 67 20 69 | 6e 20 74 68 65 20 73 6f |lowing i|n the so|
|00005950| 75 72 63 65 3a 0d 3e 0d | 3e 23 64 65 66 69 6e 65 |urce:.>.|>#define|
|00005960| 20 66 72 65 65 28 70 29 | 20 44 69 73 70 6f 73 50 | free(p)| DisposP|
|00005970| 74 72 28 28 50 74 72 29 | 28 70 29 29 0d 3e 23 64 |tr((Ptr)|(p)).>#d|
|00005980| 65 66 69 6e 65 20 63 61 | 6c 6c 6f 63 28 73 2c 6e |efine ca|lloc(s,n|
|00005990| 29 20 28 28 76 6f 69 64 | 20 2a 29 4e 65 77 50 74 |) ((void| *)NewPt|
|000059a0| 72 43 6c 65 61 72 28 73 | 2a 6e 29 29 0d 20 20 20 |rClear(s|*n)). |
|000059b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000059d0| 20 20 20 20 20 20 7e 7e | 7e 7e 7e 0d 3e 23 64 65 | ~~|~~~.>#de|
|000059e0| 66 69 6e 65 20 6d 61 6c | 6c 6f 63 28 73 29 20 28 |fine mal|loc(s) (|
|000059f0| 28 76 6f 69 64 20 2a 29 | 4e 65 77 50 74 72 28 73 |(void *)|NewPtr(s|
|00005a00| 29 29 0d 3e 0d 3e 57 6f | 72 6b 65 64 20 66 69 6e |)).>.>Wo|rked fin|
|00005a10| 65 20 66 6f 72 20 6d 65 | 2e 0d 0d 4a 75 73 74 20 |e for me|...Just |
|00005a20| 6f 6e 20 70 72 69 6e 63 | 69 70 6c 65 2c 20 69 74 |on princ|iple, it|
|00005a30| 20 6d 69 67 68 74 20 62 | 65 20 61 20 62 65 74 74 | might b|e a bett|
|00005a40| 65 72 20 69 64 65 61 20 | 74 6f 20 70 75 74 20 70 |er idea |to put p|
|00005a50| 61 72 65 6e 74 68 65 73 | 65 73 0d 61 72 6f 75 6e |arenthes|es.aroun|
|00005a60| 64 20 73 20 61 6e 64 20 | 6e 20 69 6e 20 74 68 65 |d s and |n in the|
|00005a70| 20 6d 61 63 72 6f 20 7b | 74 6f 20 77 69 74 3a 20 | macro {|to wit: |
|00005a80| 4e 65 77 50 74 72 43 6c | 65 61 72 28 28 73 29 2a |NewPtrCl|ear((s)*|
|00005a90| 28 6e 29 29 20 7d 2e 0d | 49 74 20 69 73 2c 20 61 |(n)) }..|It is, a|
|00005aa0| 64 6d 69 74 74 65 64 6c | 79 2c 20 61 20 6c 69 74 |dmittedl|y, a lit|
|00005ab0| 74 6c 65 20 72 61 72 65 | 20 74 6f 20 68 61 76 65 |tle rare| to have|
|00005ac0| 20 63 6f 6d 70 6c 69 63 | 61 74 65 64 20 65 78 70 | complic|ated exp|
|00005ad0| 72 65 73 73 69 6f 6e 73 | 20 0d 61 73 20 70 61 72 |ressions| .as par|
|00005ae0| 61 6d 65 74 65 72 73 20 | 74 6f 20 63 61 6c 6c 6f |ameters |to callo|
|00005af0| 63 2c 20 62 75 74 20 27 | 74 20 63 61 6e 20 68 61 |c, but '|t can ha|
|00005b00| 70 70 65 6e 2e 0d 0d 50 | 69 63 6b 79 20 6d 65 20 |ppen...P|icky me |
|00005b10| 3b 2d 7d 0d 0d 2d 2d 20 | 0d 50 65 74 65 72 20 43 |;-}..-- |.Peter C|
|00005b20| 61 73 74 69 6e 65 20 20 | 20 20 20 20 20 20 20 20 |astine | |
|00005b30| 20 20 20 20 7c 20 44 72 | 2e 20 57 68 6f 20 71 75 | | Dr|. Who qu|
|00005b40| 6f 74 65 20 64 75 20 6a | 6f 75 72 3a 0d 70 63 61 |ote du j|our:.pca|
|00005b50| 73 74 69 6e 65 40 70 72 | 7a 2e 74 75 2d 62 65 72 |stine@pr|z.tu-ber|
|00005b60| 6c 69 6e 2e 64 65 20 20 | 7c 20 20 20 20 20 48 61 |lin.de || Ha|
|00005b70| 76 65 20 79 6f 75 20 6e | 6f 74 69 63 65 64 20 74 |ve you n|oticed t|
|00005b80| 68 65 20 77 61 79 20 70 | 65 6f 70 6c 65 27 73 0d |he way p|eople's.|
|00005b90| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005ba0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 7c 20 69 6e 74 |========|===| int|
|00005bb0| 65 6c 6c 69 67 65 6e 63 | 65 20 63 61 70 61 62 69 |elligenc|e capabi|
|00005bc0| 6c 69 74 69 65 73 20 64 | 65 63 6c 69 6e 65 20 73 |lities d|ecline s|
|00005bd0| 68 61 72 70 6c 79 0d 20 | 60 60 48 61 76 65 20 4d |harply. |``Have M|
|00005be0| 61 63 2c 20 77 69 6c 6c | 20 74 72 61 76 65 6c 27 |ac, will| travel'|
|00005bf0| 27 20 7c 20 74 68 65 20 | 6d 69 6e 75 74 65 20 74 |' | the |minute t|
|00005c00| 68 65 79 20 73 74 61 72 | 74 20 77 61 76 69 6e 67 |hey star|t waving|
|00005c10| 20 67 75 6e 73 20 61 72 | 6f 75 6e 64 3f 0d 0d 2d | guns ar|ound?..-|
|00005c20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005c30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 0d 3e 46 72 6f |--------|--..>Fro|
|00005c40| 6d 20 4a 61 6b 65 5f 56 | 2e 5f 42 6f 75 76 72 69 |m Jake_V|._Bouvri|
|00005c50| 65 40 62 63 73 6d 61 63 | 2e 6f 72 67 20 28 4a 61 |e@bcsmac|.org (Ja|
|00005c60| 6b 65 20 56 2e 20 42 6f | 75 76 72 69 65 29 0d 53 |ke V. Bo|uvrie).S|
|00005c70| 75 62 6a 65 63 74 3a 20 | 43 6c 6f 73 69 6e 67 20 |ubject: |Closing |
|00005c80| 44 6f 77 6e 20 74 68 65 | 20 46 49 4e 44 45 52 0d |Down the| FINDER.|
|00005c90| 44 61 74 65 3a 20 53 75 | 6e 2c 20 20 35 20 4a 75 |Date: Su|n, 5 Ju|
|00005ca0| 6e 20 39 34 20 31 31 3a | 35 32 3a 35 30 20 45 53 |n 94 11:|52:50 ES|
|00005cb0| 54 0d 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |T.Organi|zation: |
|00005cc0| 28 6e 6f 6e 65 29 0d 0d | 49 73 20 69 74 20 70 6f |(none)..|Is it po|
|00005cd0| 73 73 69 62 6c 65 20 74 | 6f 20 71 75 69 74 20 74 |ssible t|o quit t|
|00005ce0| 68 65 20 66 69 6e 64 65 | 72 20 66 72 6f 6d 20 79 |he finde|r from y|
|00005cf0| 6f 75 72 20 61 70 70 2c | 20 73 6f 20 74 68 61 74 |our app,| so that|
|00005d00| 20 74 68 65 72 65 20 69 | 73 6e 27 74 20 61 20 66 | there i|sn't a f|
|00005d10| 69 6e 64 65 72 20 74 6f | 0d 67 6f 20 74 6f 20 3f |inder to|.go to ?|
|00005d20| 0d 0d 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |..++++++|++++++++|
|00005d30| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 0d 0d 3e |++++++++|+++++..>|
|00005d40| 46 72 6f 6d 20 6d 63 6c | 6f 77 40 63 6f 79 6f 74 |From mcl|ow@coyot|
|00005d50| 65 2e 63 73 75 73 6d 2e | 65 64 75 20 28 4d 61 72 |e.csusm.|edu (Mar|
|00005d60| 73 68 61 6c 6c 20 43 6c | 6f 77 29 0d 44 61 74 65 |shall Cl|ow).Date|
|00005d70| 3a 20 35 20 4a 75 6e 20 | 31 39 39 34 20 31 30 3a |: 5 Jun |1994 10:|
|00005d80| 33 33 3a 32 34 20 2d 30 | 37 30 30 0d 4f 72 67 61 |33:24 -0|700.Orga|
|00005d90| 6e 69 7a 61 74 69 6f 6e | 3a 20 43 61 6c 69 66 6f |nization|: Califo|
|00005da0| 72 6e 69 61 20 53 74 61 | 74 65 20 55 6e 69 76 65 |rnia Sta|te Unive|
|00005db0| 72 73 69 74 79 20 53 61 | 6e 20 4d 61 72 63 6f 73 |rsity Sa|n Marcos|
|00005dc0| 0d 0d 4a 61 6b 65 20 56 | 2e 20 42 6f 75 76 72 69 |..Jake V|. Bouvri|
|00005dd0| 65 20 28 4a 61 6b 65 5f | 56 2e 5f 42 6f 75 76 72 |e (Jake_|V._Bouvr|
|00005de0| 69 65 40 62 63 73 6d 61 | 63 2e 6f 72 67 29 20 77 |ie@bcsma|c.org) w|
|00005df0| 72 6f 74 65 3a 0d 3e 49 | 73 20 69 74 20 70 6f 73 |rote:.>I|s it pos|
|00005e00| 73 69 62 6c 65 20 74 6f | 20 71 75 69 74 20 74 68 |sible to| quit th|
|00005e10| 65 20 66 69 6e 64 65 72 | 20 66 72 6f 6d 20 79 6f |e finder| from yo|
|00005e20| 75 72 20 61 70 70 2c 20 | 0d 3e 73 6f 20 74 68 61 |ur app, |.>so tha|
|00005e30| 74 20 74 68 65 72 65 20 | 69 73 6e 27 74 20 61 20 |t there |isn't a |
|00005e40| 66 69 6e 64 65 72 20 74 | 6f 20 67 6f 20 74 6f 20 |finder t|o go to |
|00005e50| 3f 0d 0d 53 75 72 65 2c | 20 73 65 6e 64 20 69 74 |?..Sure,| send it|
|00005e60| 20 61 20 27 71 75 69 74 | 27 20 61 70 70 6c 65 20 | a 'quit|' apple |
|00005e70| 65 76 65 6e 74 2e 0d 55 | 6e 64 65 72 20 73 79 73 |event..U|nder sys|
|00005e80| 74 65 6d 20 36 20 69 74 | 27 73 20 68 61 72 64 65 |tem 6 it|'s harde|
|00005e90| 72 2e 0d 0d 4d 61 72 73 | 68 61 6c 6c 20 43 6c 6f |r...Mars|hall Clo|
|00005ea0| 77 0d 41 6c 61 64 64 69 | 6e 20 53 79 73 74 65 6d |w.Aladdi|n System|
|00005eb0| 73 0d 6d 63 6c 6f 77 40 | 73 61 6e 5f 6d 61 72 63 |s.mclow@|san_marc|
|00005ec0| 6f 73 2e 63 73 75 73 6d | 2e 65 64 75 0d 0d 0d 2b |os.csusm|.edu...+|
|00005ed0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005ee0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 0d 0d 3e 46 72 6f |++++++++|++..>Fro|
|00005ef0| 6d 20 6b 65 6e 6c 6f 6e | 67 40 6e 65 74 63 6f 6d |m kenlon|g@netcom|
|00005f00| 2e 63 6f 6d 20 28 4b 65 | 6e 20 4c 6f 6e 67 29 0d |.com (Ke|n Long).|
|00005f10| 44 61 74 65 3a 20 53 75 | 6e 2c 20 35 20 4a 75 6e |Date: Su|n, 5 Jun|
|00005f20| 20 31 39 39 34 20 31 38 | 3a 31 39 3a 34 33 20 47 | 1994 18|:19:43 G|
|00005f30| 4d 54 0d 4f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |MT.Organ|ization:|
|00005f40| 20 4e 45 54 43 4f 4d 20 | 4f 6e 2d 6c 69 6e 65 20 | NETCOM |On-line |
|00005f50| 43 6f 6d 6d 75 6e 69 63 | 61 74 69 6f 6e 20 53 65 |Communic|ation Se|
|00005f60| 72 76 69 63 65 73 20 28 | 34 30 38 20 32 36 31 2d |rvices (|408 261-|
|00005f70| 34 37 30 30 20 67 75 65 | 73 74 29 0d 0d 44 6f 20 |4700 gue|st)..Do |
|00005f80| 79 6f 75 20 6d 65 61 6e | 20 69 6e 20 63 6f 64 65 |you mean| in code|
|00005f90| 20 6f 72 20 69 6e 20 70 | 72 61 63 74 69 63 65 3f | or in p|ractice?|
|00005fa0| 0d 0d 2d 4b 65 6e 2d 0d | 0d 2b 2b 2b 2b 2b 2b 2b |..-Ken-.|.+++++++|
|00005fb0| 2b 2b 2b 2b 2b 2b 2b 2b | 2b 2b 2b 2b 2b 2b 2b 2b |++++++++|++++++++|
|00005fc0| 2b 2b 2b 2b 0d 0d 3e 46 | 72 6f 6d 20 67 72 6f 62 |++++..>F|rom grob|
|00005fd0| 62 69 6e 73 40 61 70 70 | 6c 65 2e 63 6f 6d 20 28 |bins@app|le.com (|
|00005fe0| 47 72 6f 62 62 69 6e 73 | 29 0d 44 61 74 65 3a 20 |Grobbins|).Date: |
|00005ff0| 35 20 4a 75 6e 20 31 39 | 39 34 20 31 37 3a 30 33 |5 Jun 19|94 17:03|
|00006000| 3a 30 31 20 2d 30 37 30 | 30 0d 4f 72 67 61 6e 69 |:01 -070|0.Organi|
|00006010| 7a 61 74 69 6f 6e 3a 20 | 53 6b 75 6e 6b 77 6f 72 |zation: |Skunkwor|
|00006020| 6b 73 0d 0d 49 6e 20 61 | 72 74 69 63 6c 65 20 3c |ks..In a|rticle <|
|00006030| 32 73 74 32 39 34 24 70 | 68 6a 40 63 6f 79 6f 74 |2st294$p|hj@coyot|
|00006040| 65 2e 63 73 75 73 6d 2e | 65 64 75 3e 2c 0d 4d 61 |e.csusm.|edu>,.Ma|
|00006050| 72 73 68 61 6c 6c 20 43 | 6c 6f 77 20 3c 6d 63 6c |rshall C|low <mcl|
|00006060| 6f 77 40 63 6f 79 6f 74 | 65 2e 63 73 75 73 6d 2e |ow@coyot|e.csusm.|
|00006070| 65 64 75 3e 20 77 72 6f | 74 65 3a 0d 3e 4a 61 6b |edu> wro|te:.>Jak|
|00006080| 65 20 56 2e 20 42 6f 75 | 76 72 69 65 20 28 4a 61 |e V. Bou|vrie (Ja|
|00006090| 6b 65 5f 56 2e 5f 42 6f | 75 76 72 69 65 40 62 63 |ke_V._Bo|uvrie@bc|
|000060a0| 73 6d 61 63 2e 6f 72 67 | 29 20 77 72 6f 74 65 3a |smac.org|) wrote:|
|000060b0| 0d 3e 3e 49 73 20 69 74 | 20 70 6f 73 73 69 62 6c |.>>Is it| possibl|
|000060c0| 65 20 74 6f 20 71 75 69 | 74 20 74 68 65 20 66 69 |e to qui|t the fi|
|000060d0| 6e 64 65 72 20 66 72 6f | 6d 20 79 6f 75 72 20 61 |nder fro|m your a|
|000060e0| 70 70 2c 20 0d 3e 3e 73 | 6f 20 74 68 61 74 20 74 |pp, .>>s|o that t|
|000060f0| 68 65 72 65 20 69 73 6e | 27 74 20 61 20 66 69 6e |here isn|'t a fin|
|00006100| 64 65 72 20 74 6f 20 67 | 6f 20 74 6f 20 3f 0d 3e |der to g|o to ?.>|
|00006110| 53 75 72 65 2c 20 73 65 | 6e 64 20 69 74 20 61 20 |Sure, se|nd it a |
|00006120| 27 71 75 69 74 27 20 61 | 70 70 6c 65 20 65 76 65 |'quit' a|pple eve|
|00006130| 6e 74 2e 0d 0d 4e 6f 74 | 20 73 6f 20 66 61 73 74 |nt...Not| so fast|
|00006140| 3b 20 74 68 65 72 65 20 | 61 72 65 20 69 73 73 75 |; there |are issu|
|00006150| 65 73 20 74 6f 20 63 6f | 6e 73 69 64 65 72 2e 20 |es to co|nsider. |
|00006160| 20 50 61 73 74 65 64 0d | 62 65 6c 6f 77 20 69 73 | Pasted.|below is|
|00006170| 20 74 68 65 20 64 69 73 | 63 75 73 73 69 6f 6e 20 | the dis|cussion |
|00006180| 66 72 6f 6d 20 74 68 65 | 20 46 69 6e 64 65 72 20 |from the| Finder |
|00006190| 51 26 41 20 74 65 63 68 | 20 6e 6f 74 65 0d 28 54 |Q&A tech| note.(T|
|000061a0| 42 20 35 33 35 29 2e 0d | 0d 47 72 6f 62 62 69 6e |B 535)..|.Grobbin|
|000061b0| 73 20 20 20 20 20 20 20 | 20 20 20 20 20 20 67 72 |s | gr|
|000061c0| 6f 62 62 69 6e 73 40 61 | 70 70 6c 65 2e 63 6f 6d |obbins@a|pple.com|
|000061d0| 0d 0d 55 73 75 61 6c 20 | 64 69 73 63 6c 61 69 6d |..Usual |disclaim|
|000061e0| 65 72 73 20 61 70 70 6c | 79 2e 0d 0d 5f 5f 5f 5f |ers appl|y...____|
|000061f0| 5f 5f 0d 0d 0d 66 72 6f | 6d 20 4d 61 63 69 6e 74 |__...fro|m Macint|
|00006200| 6f 73 68 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |osh Tech|nical No|
|00006210| 74 65 20 54 42 20 35 33 | 35 20 2d 20 46 69 6e 64 |te TB 53|5 - Find|
|00006220| 65 72 20 51 26 41 73 3a | 0d 0d 51 75 69 74 74 69 |er Q&As:|..Quitti|
|00006230| 6e 67 20 53 79 73 74 65 | 6d 20 37 20 46 69 6e 64 |ng Syste|m 7 Find|
|00006240| 65 72 0d 44 61 74 65 20 | 57 72 69 74 74 65 6e 3a |er.Date |Written:|
|00006250| 20 20 34 2f 31 37 2f 39 | 32 0d 4c 61 73 74 20 72 | 4/17/9|2.Last r|
|00006260| 65 76 69 65 77 65 64 3a | 20 20 36 2f 31 34 2f 39 |eviewed:| 6/14/9|
|00006270| 33 0d 49 27 76 65 20 62 | 65 65 6e 20 74 68 69 6e |3.I've b|een thin|
|00006280| 6b 69 6e 67 20 6f 66 20 | 73 68 75 74 74 69 6e 67 |king of |shutting|
|00006290| 20 64 6f 77 6e 20 74 68 | 65 20 53 79 73 74 65 6d | down th|e System|
|000062a0| 20 37 20 46 69 6e 64 65 | 72 2e 20 49 73 20 74 68 | 7 Finde|r. Is th|
|000062b0| 69 73 20 61 20 63 6f 6f | 6c 0d 74 68 69 6e 67 20 |is a coo|l.thing |
|000062c0| 74 6f 20 64 6f 20 69 6e | 20 6d 79 20 61 70 70 6c |to do in| my appl|
|000062d0| 69 63 61 74 69 6f 6e 3f | 0d 5f 5f 5f 0d 57 65 20 |ication?|.___.We |
|000062e0| 6e 6f 72 6d 61 6c 6c 79 | 20 72 65 63 6f 6d 6d 65 |normally| recomme|
|000062f0| 6e 64 20 74 68 61 74 20 | 79 6f 75 20 64 6f 6e 27 |nd that |you don'|
|00006300| 74 20 71 75 69 74 20 74 | 68 65 20 53 79 73 74 65 |t quit t|he Syste|
|00006310| 6d 20 37 20 46 69 6e 64 | 65 72 20 61 70 70 6c 69 |m 7 Find|er appli|
|00006320| 63 61 74 69 6f 6e 2e 0d | 4e 65 76 65 72 74 68 65 |cation..|Neverthe|
|00006330| 6c 65 73 73 2c 20 74 68 | 65 72 65 20 6d 61 79 20 |less, th|ere may |
|00006340| 62 65 20 61 20 66 65 77 | 20 67 6f 6f 64 20 72 65 |be a few| good re|
|00006350| 61 73 6f 6e 73 20 74 6f | 20 73 68 75 74 20 64 6f |asons to| shut do|
|00006360| 77 6e 20 74 68 65 20 46 | 69 6e 64 65 72 2e 20 46 |wn the F|inder. F|
|00006370| 6f 72 0d 65 78 61 6d 70 | 6c 65 2c 20 74 68 65 20 |or.examp|le, the |
|00006380| 49 6e 73 74 61 6c 6c 65 | 72 20 28 74 68 65 20 6f |Installe|r (the o|
|00006390| 6e 6c 79 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |nly appl|ication |
|000063a0| 41 70 70 6c 65 20 73 68 | 69 70 73 20 77 69 74 68 |Apple sh|ips with|
|000063b0| 20 61 20 67 6f 6f 64 20 | 72 65 61 73 6f 6e 0d 74 | a good |reason.t|
|000063c0| 6f 20 64 6f 20 73 6f 29 | 20 73 6f 6d 65 74 69 6d |o do so)| sometim|
|000063d0| 65 73 20 6e 65 65 64 73 | 20 74 6f 20 73 68 75 74 |es needs| to shut|
|000063e0| 20 64 6f 77 6e 20 74 68 | 65 20 46 69 6e 64 65 72 | down th|e Finder|
|000063f0| 20 61 6e 64 20 61 6c 6c | 20 6f 74 68 65 72 20 61 | and all| other a|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.